diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2007-12-01 16:49:45 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2007-12-01 16:49:45 +0300 |
commit | a7b76a4eb3910bf937f95e618aec6a4780806c2a (patch) | |
tree | fd04ff9cd94e5faf401a32e190be6eac32c6b6cd /winsup/cygwin/include | |
parent | 911cc0c9f6de5fe68f9e3437418f86240c4f2b57 (diff) |
* include/cygwin/time.h (daylight): Declare as extern symbol referring
_daylight variable.
(timezone): Only define if __timezonefunc__ is undefined.
Diffstat (limited to 'winsup/cygwin/include')
-rw-r--r-- | winsup/cygwin/include/cygwin/time.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/winsup/cygwin/include/cygwin/time.h b/winsup/cygwin/include/cygwin/time.h index 50ec87dac..c51f48388 100644 --- a/winsup/cygwin/include/cygwin/time.h +++ b/winsup/cygwin/include/cygwin/time.h @@ -25,11 +25,13 @@ time_t __cdecl timegm (struct tm *); #define TIMER_RELTIME 0 /* For compatibility with HP/UX, Solaris, others? */ #ifndef __STRICT_ANSI__ -# ifndef daylight -# define daylight _daylight -# endif +extern int daylight __asm__ ("__daylight"); + +#ifndef __timezonefunc__ extern long timezone __asm__ ("__timezone"); +#endif +#endif #endif /*__STRICT_ANSI__*/ |