diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2018-05-01 12:02:41 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2018-05-01 12:02:41 -0400 |
commit | 3c0e07a466c97244825abf83f2f14ab94ac57624 (patch) | |
tree | d75f9dc2c4ad72a1d1161d51f68336e462ec2e99 | |
parent | 8d9e4d13dd6edd4165f1f82f06e07c6fccf1c0ea (diff) | |
download | postgresql-3c0e07a466c97244825abf83f2f14ab94ac57624.tar.gz postgresql-3c0e07a466c97244825abf83f2f14ab94ac57624.zip |
On all Windows platforms, not just Cygwin, use _timezone and _tzname.
Back-patch commit 868628e4f into the 9.5 branch, so that we can support
building that branch with Visual Studio 2015. This patch itself could
go further back, but other VS2015 patches such as 0fb54de9a and c8e81afc6
were only back-patched to 9.5, so there seems little point in handling
this one differently.
Discussion: https://postgr.es/m/CAD=LzWFg+Z-KUS3Wm8-1J2vOuYErJXbjuE6b7quzswQEBXJWMQ@mail.gmail.com
-rw-r--r-- | src/include/port.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/include/port.h b/src/include/port.h index 3787cbfb761..54baaa78d7c 100644 --- a/src/include/port.h +++ b/src/include/port.h @@ -213,12 +213,12 @@ extern int pgkill(int pid, int sig); extern int pclose_check(FILE *stream); /* Global variable holding time zone information. */ -#ifndef __CYGWIN__ -#define TIMEZONE_GLOBAL timezone -#define TZNAME_GLOBAL tzname -#else +#if defined(WIN32) || defined(__CYGWIN__) #define TIMEZONE_GLOBAL _timezone #define TZNAME_GLOBAL _tzname +#else +#define TIMEZONE_GLOBAL timezone +#define TZNAME_GLOBAL tzname #endif #if defined(WIN32) || defined(__CYGWIN__) |