* Makefile.in (OBSOLETE_FUNCTIONS): Add timezone.

* include/cygwin/time.h: Drop conditional timezone definitions.
	(timezone): Declare as extern symbol referring _timezone variable.
This commit is contained in:
Corinna Vinschen 2007-12-01 13:04:43 +00:00
parent e23dd0ad89
commit cf632a487b
3 changed files with 10 additions and 8 deletions

View File

@ -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-28 Corinna Vinschen <corinna@vinschen.de>
* fhandler_tape.cc (mtinfo::initialize): Use MAX_PATH instead of

View File

@ -158,7 +158,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 \

View File

@ -29,13 +29,8 @@ time_t __cdecl 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