diff options
author | Christopher Faylor <me@cgf.cx> | 2000-03-19 04:14:07 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-03-19 04:14:07 +0000 |
commit | 5bc5ee4457a633ca8b47ec4264cdeee29b1c5342 (patch) | |
tree | b77d7327f123fb5a2031509b21bee1d54b468dd0 /winsup/cygwin/times.cc | |
parent | 731d9d5b3ca35682cf7918f9b460c1dc1a4b1485 (diff) | |
download | newlib-5bc5ee4457a633ca8b47ec4264cdeee29b1c5342.zip newlib-5bc5ee4457a633ca8b47ec4264cdeee29b1c5342.tar.gz newlib-5bc5ee4457a633ca8b47ec4264cdeee29b1c5342.tar.bz2 |
* times.cc: Fix extern declarations for variables that are exported but used by
this modules.
Diffstat (limited to 'winsup/cygwin/times.cc')
-rw-r--r-- | winsup/cygwin/times.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/winsup/cygwin/times.cc b/winsup/cygwin/times.cc index 51f5d08..738d84f 100644 --- a/winsup/cygwin/times.cc +++ b/winsup/cygwin/times.cc @@ -8,6 +8,10 @@ This software is a copyrighted work licensed under the terms of the Cygwin license. Please consult the file "CYGWIN_LICENSE" for details. */ +/* Hide definitions from the library since they contain the + "dllimport" attribute. */ +#define _timezone dummy_timezone +#define _daylight dummy_daylight #include <time.h> #include <sys/times.h> #include <sys/timeb.h> @@ -17,6 +21,11 @@ details. */ #include <errno.h> #include "winsup.h" +#undef _timezone +#undef _daylight +extern time_t _timezone; +extern int _daylight; + #define FACTOR (0x19db1ded53ea710LL) #define NSPERSEC 10000000LL |