Skip to content
Snippets Groups Projects
Commit 33f395ea authored by Bruce Momjian's avatar Bruce Momjian
Browse files

Cast _timezone to int from time_t for Cygwin.

parent 90e1ac92
No related branches found
No related tags found
No related merge requests found
...@@ -220,7 +220,11 @@ do { \ ...@@ -220,7 +220,11 @@ do { \
#if !defined(__CYGWIN__) && !defined(WIN32) #if !defined(__CYGWIN__) && !defined(WIN32)
#define TIMEZONE_GLOBAL timezone #define TIMEZONE_GLOBAL timezone
#else #else
#if defined(WIN32)
#define TIMEZONE_GLOBAL _timezone #define TIMEZONE_GLOBAL _timezone
#else
#define TIMEZONE_GLOBAL ((int)_timezone) /* time_t on Cywgin */
#endif
#define tzname _tzname /* should be in time.h? */ #define tzname _tzname /* should be in time.h? */
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment