Mercurial > emacs
changeset 1571:ca102ce0c00d
* systime.h [USG] (EMACS_GET_TZ_OFFSET): Assign to *(offset), not
(offset). Don't forget the while corresponding to the do.
Include USG in the list of systems that have a tzname array.
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Sat, 07 Nov 1992 07:37:08 +0000 |
parents | d978f163d9a4 |
children | 04c1b4719e60 |
files | src/systime.h |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/systime.h Sat Nov 07 07:36:36 1992 +0000 +++ b/src/systime.h Sat Nov 07 07:37:08 1992 +0000 @@ -201,14 +201,14 @@ #define EMACS_GET_TZ_OFFSET(offset) \ do { \ tzset (); \ - (offset) = timezone; \ - } + *(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. */ -#if defined (ultrix) || defined (hpux) || defined (_AIX) +#if defined (ultrix) || defined (hpux) || defined (_AIX) || defined (USG) #define EMACS_GET_TZ_NAMES(standard, savings) \ do { \