diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2007-12-01 13:04:57 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2007-12-01 13:04:57 +0000 |
commit | a5bf3b159c4721cd3a0cbc4db7ae6757030d1293 (patch) | |
tree | ac4c1d66b04756798f92cabacc1f7e5b6b37a803 | |
parent | 89ee49de1bb814962a22332d8ab0eb67de651c42 (diff) | |
download | newlib-a5bf3b159c4721cd3a0cbc4db7ae6757030d1293.zip newlib-a5bf3b159c4721cd3a0cbc4db7ae6757030d1293.tar.gz newlib-a5bf3b159c4721cd3a0cbc4db7ae6757030d1293.tar.bz2 |
* Makefile.in (OBSOLETE_FUNCTIONS): Add timezone.
* include/cygwin/time.h: Drop conditional timezone definitions.
(timezone): Declare as extern symbol referring _timezone variable.
-rw-r--r-- | winsup/cygwin/ChangeLog | 7 | ||||
-rw-r--r-- | winsup/cygwin/Makefile.in | 2 | ||||
-rw-r--r-- | winsup/cygwin/include/cygwin/time.h | 9 |
3 files changed, 10 insertions, 8 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 701433f..dcad136 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,10 @@ +2007-12-01 Corinna Vinschen <corinna@vinschen.de> + Brian Dessent <brian@dessent.net> + + * Makefile.in (OBSOLETE_FUNCTIONS): Add timezone. + * include/cygwin/time.h: Drop conditional timezone definitions. + (timezone): Declare as extern symbol referring _timezone variable. + 2007-11-27 Corinna Vinschen <corinna@vinschen.de> Drop old SetResourceLock stuff in favor of mutos. diff --git a/winsup/cygwin/Makefile.in b/winsup/cygwin/Makefile.in index b2ca09a..f4a6b3f 100644 --- a/winsup/cygwin/Makefile.in +++ b/winsup/cygwin/Makefile.in @@ -156,7 +156,7 @@ OBSOLETE_FUNCTIONS:=regcomp regerror regexec regfree regsub \ getgroups getpwuid getpwuid_r getuid initgroups \ lchown lseek lstat mknod mmap seekdir setegid seteuid \ setgid setgroups setregid setreuid setuid stat \ - telldir tmpfile truncate + telldir tmpfile truncate timezone NEW_FUNCTIONS:=regcomp posix_regcomp \ regerror posix_regerror \ diff --git a/winsup/cygwin/include/cygwin/time.h b/winsup/cygwin/include/cygwin/time.h index 61d385e..95665c9 100644 --- a/winsup/cygwin/include/cygwin/time.h +++ b/winsup/cygwin/include/cygwin/time.h @@ -30,13 +30,8 @@ time_t timegm (struct tm *); # define daylight _daylight # endif -/* The timezone function is only kept for backward compatibility. - POSIX expects the timezone variable as XSI extension. */ -# ifdef __timezonefunc__ -char __cdecl *timezone (void); -# elif !defined(timezone) -# define timezone _timezone -# endif +extern long timezone __asm__ ("__timezone"); + #endif /*__STRICT_ANSI__*/ #ifdef __cplusplus |