aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2004-09-01 04:02:06 +0000
committerBruce Momjian <bruce@momjian.us>2004-09-01 04:02:06 +0000
commit33f395eada3e7f84a19059772012f304515eb6e7 (patch)
treeb9922189aa048af024555aa66874b214f8b0ef5c
parent90e1ac92929e456fc7750d81cd6517f6dd1c1370 (diff)
downloadpostgresql-33f395eada3e7f84a19059772012f304515eb6e7.tar.gz
postgresql-33f395eada3e7f84a19059772012f304515eb6e7.zip
Cast _timezone to int from time_t for Cygwin.
-rw-r--r--src/interfaces/ecpg/pgtypeslib/dt.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/interfaces/ecpg/pgtypeslib/dt.h b/src/interfaces/ecpg/pgtypeslib/dt.h
index fa74a23f4ba..a97a414c345 100644
--- 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