Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
98f77753
Commit
98f77753
authored
Feb 22, 1993
by
Jim Blandy
Browse files
* systime.h [_AIX]: Move test outside of previous #if.
(EMACS_GET_TZ_OFFSET) [USG]: Don't declare twice. Prefer tzset.
parent
31be8d24
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
src/systime.h
src/systime.h
+12
-12
No files found.
src/systime.h
View file @
98f77753
...
...
@@ -33,13 +33,13 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <time.h>
#endif
/* _h_BSDTYPES */
#endif
/* AIX needs both <sys/time.h> and <time.h>. */
#ifdef _AIX
#include <time.h>
#endif
#endif
/* EMACS_TIME is the type to use to represent temporal intervals -
struct timeval on some systems, int on others. It can be passed as
...
...
@@ -184,8 +184,17 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifndef EMACS_CURRENT_TIME_ZONE
/* System V derivatives have a timezone global variable. */
#ifdef USG
#define EMACS_GET_TZ_OFFSET(offset) \
do { \
tzset (); \
*(offset) = timezone; \
} while (0)
#endif
/* If we have timeval, then we have gettimeofday; that's half the battle. */
#ifdef
HAVE_TIMEVAL
#if
def
ined (
HAVE_TIMEVAL
) && !defined (EMACS_GET_TZ_OFFSET)
#define EMACS_GET_TZ_OFFSET(offset) \
do { \
struct timeval dummy; \
...
...
@@ -196,15 +205,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
} while (0)
#endif
/* ! defined (HAVE_TIMEVAL) */
/* System V derivatives have a timezone global variable. */
#ifdef USG
#define EMACS_GET_TZ_OFFSET(offset) \
do { \
tzset (); \
*(offset) = timezone; \
} while (0)
#endif
/* The following sane systems have a tzname array. The timezone() function
is a stupid idea; timezone names can only be determined geographically,
not by Greenwich offset. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment