Fossil SCM
Make sure that in Win64 builds _USE_32BIT_TIME_T is never defined.
Commit
d66cfb164f3987d45d6267a55b54c9714fa24e0c
Parent
6981cc6851ed5f3…
1 file changed
+5
+5
| --- src/config.h | ||
| +++ src/config.h | ||
| @@ -24,10 +24,15 @@ | ||
| 24 | 24 | #define _LARGE_FILE 1 |
| 25 | 25 | #ifndef _FILE_OFFSET_BITS |
| 26 | 26 | # define _FILE_OFFSET_BITS 64 |
| 27 | 27 | #endif |
| 28 | 28 | #define _LARGEFILE_SOURCE 1 |
| 29 | + | |
| 30 | +/* Make sure that in 64-bit builds, _USE_32BIT_TIME_T is NEVER defined. */ | |
| 31 | +#ifdef _WIN64 | |
| 32 | +# undef _USE_32BIT_TIME_T | |
| 33 | +#endif | |
| 29 | 34 | |
| 30 | 35 | #ifdef HAVE_AUTOCONFIG_H |
| 31 | 36 | #include "autoconfig.h" |
| 32 | 37 | #endif |
| 33 | 38 | |
| 34 | 39 |
| --- src/config.h | |
| +++ src/config.h | |
| @@ -24,10 +24,15 @@ | |
| 24 | #define _LARGE_FILE 1 |
| 25 | #ifndef _FILE_OFFSET_BITS |
| 26 | # define _FILE_OFFSET_BITS 64 |
| 27 | #endif |
| 28 | #define _LARGEFILE_SOURCE 1 |
| 29 | |
| 30 | #ifdef HAVE_AUTOCONFIG_H |
| 31 | #include "autoconfig.h" |
| 32 | #endif |
| 33 | |
| 34 |
| --- src/config.h | |
| +++ src/config.h | |
| @@ -24,10 +24,15 @@ | |
| 24 | #define _LARGE_FILE 1 |
| 25 | #ifndef _FILE_OFFSET_BITS |
| 26 | # define _FILE_OFFSET_BITS 64 |
| 27 | #endif |
| 28 | #define _LARGEFILE_SOURCE 1 |
| 29 | |
| 30 | /* Make sure that in 64-bit builds, _USE_32BIT_TIME_T is NEVER defined. */ |
| 31 | #ifdef _WIN64 |
| 32 | # undef _USE_32BIT_TIME_T |
| 33 | #endif |
| 34 | |
| 35 | #ifdef HAVE_AUTOCONFIG_H |
| 36 | #include "autoconfig.h" |
| 37 | #endif |
| 38 | |
| 39 |