projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90e1ac9
)
Cast _timezone to int from time_t for Cygwin.
author
Bruce Momjian
Wed, 1 Sep 2004 04:02:06 +0000
(
04:02
+0000)
committer
Bruce Momjian
Wed, 1 Sep 2004 04:02:06 +0000
(
04:02
+0000)
src/interfaces/ecpg/pgtypeslib/dt.h
patch
|
blob
|
blame
|
history
diff --git
a/src/interfaces/ecpg/pgtypeslib/dt.h
b/src/interfaces/ecpg/pgtypeslib/dt.h
index fa74a23f4ba180738f0c7ce401e4f3387a8a9c5f..a97a414c345bb2b0a847ff27824c08668d4cb478 100644
(file)
--- a/
src/interfaces/ecpg/pgtypeslib/dt.h
+++ b/
src/interfaces/ecpg/pgtypeslib/dt.h
@@
-220,7
+220,11
@@
do { \
#if !defined(__CYGWIN__) && !defined(WIN32)
#define TIMEZONE_GLOBAL timezone
#else
+#if defined(WIN32)
#define TIMEZONE_GLOBAL _timezone
+#else
+#define TIMEZONE_GLOBAL ((int)_timezone) /* time_t on Cywgin */
+#endif
#define tzname _tzname /* should be in time.h? */
#endif