mingw-w64 header files already sets _USE_32BIT_TIME_T based on the _TIME_BITS settings.
All other header files are using exclusively _USE_32BIT_TIME_T macro for determining if the time_t is 32-bit or 64-bit. So do same in winpthreads header files for compatibility with other CRT and mingw-w64 functions. --- mingw-w64-libraries/winpthreads/include/pthread_compat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mingw-w64-libraries/winpthreads/include/pthread_compat.h b/mingw-w64-libraries/winpthreads/include/pthread_compat.h index 2a978ffb4fe9..e0b9cc3407cf 100644 --- a/mingw-w64-libraries/winpthreads/include/pthread_compat.h +++ b/mingw-w64-libraries/winpthreads/include/pthread_compat.h @@ -60,7 +60,7 @@ #ifndef WIN_PTHREADS_PTHREAD_COMPAT_H #define WIN_PTHREADS_PTHREAD_COMPAT_H -#if defined(_USE_32BIT_TIME_T) || (defined(_TIME_BITS) && _TIME_BITS == 32) +#if defined(_USE_32BIT_TIME_T) #define WINPTHREADS_TIME_BITS 32 #else #define WINPTHREADS_TIME_BITS 64 -- 2.20.1 _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
