* include/cygwin/time.h (daylight): Declare as extern symbol referring

_daylight variable.
	(timezone): Only define if __timezonefunc__ is undefined.
This commit is contained in:
Corinna Vinschen 2007-12-01 13:49:45 +00:00
parent 911cc0c9f6
commit a7b76a4eb3
2 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2007-12-01 Corinna Vinschen <corinna@vinschen.de>
* include/cygwin/time.h (daylight): Declare as extern symbol referring
_daylight variable.
(timezone): Only define if __timezonefunc__ is undefined.
2007-12-01 Corinna Vinschen <corinna@vinschen.de> 2007-12-01 Corinna Vinschen <corinna@vinschen.de>
Brian Dessent <brian@dessent.net> Brian Dessent <brian@dessent.net>

View File

@ -25,11 +25,13 @@ time_t __cdecl timegm (struct tm *);
#define TIMER_RELTIME 0 /* For compatibility with HP/UX, Solaris, others? */ #define TIMER_RELTIME 0 /* For compatibility with HP/UX, Solaris, others? */
#ifndef __STRICT_ANSI__ #ifndef __STRICT_ANSI__
# ifndef daylight
# define daylight _daylight
# endif
extern int daylight __asm__ ("__daylight");
#ifndef __timezonefunc__
extern long timezone __asm__ ("__timezone"); extern long timezone __asm__ ("__timezone");
#endif
#endif
#endif /*__STRICT_ANSI__*/ #endif /*__STRICT_ANSI__*/