Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit868628e

Browse files
committed
On all Windows platforms, not just Cygwin, use _timezone and _tzname.
Up until now, we've been using timezone and tzname, but Visual Studio2015 (for which we wish to add support) no longer declares thosesymbols. All versions since Visual Studio 2003 apparently support theunderscore-equipped names, and we don't support anything older thanVisual Studio 2005, so this should work OK everywhere. But let's seewhat the buildfarm thinks.Michael Paquier, reviewed by Petr Jelinek
1 parentbd0f206 commit868628e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/include/port.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,12 +214,12 @@ extern intpgkill(int pid, int sig);
214214
externintpclose_check(FILE*stream);
215215

216216
/* Global variable holding time zone information. */
217-
#ifndef__CYGWIN__
218-
#defineTIMEZONE_GLOBAL timezone
219-
#defineTZNAME_GLOBAL tzname
220-
#else
217+
#if defined(WIN32)|| defined(__CYGWIN__)
221218
#defineTIMEZONE_GLOBAL _timezone
222219
#defineTZNAME_GLOBAL _tzname
220+
#else
221+
#defineTIMEZONE_GLOBAL timezone
222+
#defineTZNAME_GLOBAL tzname
223223
#endif
224224

225225
#if defined(WIN32)|| defined(__CYGWIN__)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp