On all Windows platforms, not just Cygwin, use _timezone and _tzname.
authorRobert Haas <rhaas@postgresql.org>
Tue, 29 Mar 2016 00:59:25 +0000 (20:59 -0400)
committerRobert Haas <rhaas@postgresql.org>
Tue, 29 Mar 2016 00:59:25 +0000 (20:59 -0400)
commit868628e4fd44d75987d6c099ac63613cc5417629
treedd17232df1c8b42f451fcf4e4e640f602aee7af1
parentbd0f206f5588767aac2456ebf6a21f7a6344cd58
On all Windows platforms, not just Cygwin, use _timezone and _tzname.

Up until now, we've been using timezone and tzname, but Visual Studio
2015 (for which we wish to add support) no longer declares those
symbols.  All versions since Visual Studio 2003 apparently support the
underscore-equipped names, and we don't support anything older than
Visual Studio 2005, so this should work OK everywhere.  But let's see
what the buildfarm thinks.

Michael Paquier, reviewed by Petr Jelinek
src/include/port.h