Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2007-12-01 16:04:43 +0300
committerCorinna Vinschen <corinna@vinschen.de>2007-12-01 16:04:43 +0300
commitcf632a487b6748b636ceb9d09e30a7ed7f29dedd (patch)
tree19b6297b305499b738abd7e0a274f8525311a7a8 /winsup/cygwin/include
parente23dd0ad8934d36d5434707ac285e4c471dddd29 (diff)
* Makefile.in (OBSOLETE_FUNCTIONS): Add timezone.
* include/cygwin/time.h: Drop conditional timezone definitions. (timezone): Declare as extern symbol referring _timezone variable.
Diffstat (limited to 'winsup/cygwin/include')
-rw-r--r--winsup/cygwin/include/cygwin/time.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/winsup/cygwin/include/cygwin/time.h b/winsup/cygwin/include/cygwin/time.h
index 2f84505f5..50ec87dac 100644
--- a/winsup/cygwin/include/cygwin/time.h
+++ b/winsup/cygwin/include/cygwin/time.h
@@ -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