* include/cygwin/time.h (daylight): Declare as extern symbol referring
_daylight variable. (timezone): Only define if __timezonefunc__ is undefined.
This commit is contained in:
parent
911cc0c9f6
commit
a7b76a4eb3
|
@ -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>
|
||||||
|
|
||||||
|
|
|
@ -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__*/
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue