Fossil SCM
Don't set _USE_32BIT_TIME_T when using MSVC++ compiler: On <VS2005 this flag has no effect, and for >=VS2005 the executable links with msvcrt80.dll (or higher), so the fact that localtime64 is missing from msvcrt.dll is no issue there.
Commit
6112b31d8cfc5f23f2258f14016f448be2fecae2
Parent
d7f457b4563a812…
1 file changed
+2
-2
+2
-2
| --- src/config.h | ||
| +++ src/config.h | ||
| @@ -25,12 +25,12 @@ | ||
| 25 | 25 | #ifndef _FILE_OFFSET_BITS |
| 26 | 26 | # define _FILE_OFFSET_BITS 64 |
| 27 | 27 | #endif |
| 28 | 28 | #define _LARGEFILE_SOURCE 1 |
| 29 | 29 | |
| 30 | -/* Make sure that in Win32 builds, _USE_32BIT_TIME_T is always defined. */ | |
| 31 | -#if defined(_WIN32) && !defined(_WIN64) && !defined(_USE_32BIT_TIME_T) | |
| 30 | +/* Make sure that in Win32 MinGW builds, _USE_32BIT_TIME_T is always defined. */ | |
| 31 | +#if defined(_WIN32) && !defined(_WIN64) && !defined(_MSC_VER) && !defined(_USE_32BIT_TIME_T) | |
| 32 | 32 | # define _USE_32BIT_TIME_T |
| 33 | 33 | #endif |
| 34 | 34 | |
| 35 | 35 | #ifdef HAVE_AUTOCONFIG_H |
| 36 | 36 | #include "autoconfig.h" |
| 37 | 37 |
| --- src/config.h | |
| +++ src/config.h | |
| @@ -25,12 +25,12 @@ | |
| 25 | #ifndef _FILE_OFFSET_BITS |
| 26 | # define _FILE_OFFSET_BITS 64 |
| 27 | #endif |
| 28 | #define _LARGEFILE_SOURCE 1 |
| 29 | |
| 30 | /* Make sure that in Win32 builds, _USE_32BIT_TIME_T is always defined. */ |
| 31 | #if defined(_WIN32) && !defined(_WIN64) && !defined(_USE_32BIT_TIME_T) |
| 32 | # define _USE_32BIT_TIME_T |
| 33 | #endif |
| 34 | |
| 35 | #ifdef HAVE_AUTOCONFIG_H |
| 36 | #include "autoconfig.h" |
| 37 |
| --- src/config.h | |
| +++ src/config.h | |
| @@ -25,12 +25,12 @@ | |
| 25 | #ifndef _FILE_OFFSET_BITS |
| 26 | # define _FILE_OFFSET_BITS 64 |
| 27 | #endif |
| 28 | #define _LARGEFILE_SOURCE 1 |
| 29 | |
| 30 | /* Make sure that in Win32 MinGW builds, _USE_32BIT_TIME_T is always defined. */ |
| 31 | #if defined(_WIN32) && !defined(_WIN64) && !defined(_MSC_VER) && !defined(_USE_32BIT_TIME_T) |
| 32 | # define _USE_32BIT_TIME_T |
| 33 | #endif |
| 34 | |
| 35 | #ifdef HAVE_AUTOCONFIG_H |
| 36 | #include "autoconfig.h" |
| 37 |