From: Eric Biggers Date: Fri, 1 May 2015 00:38:21 +0000 (-0500) Subject: Use -D_POSIX_THREAD_SAFE_FUNCTIONS for MinGW build X-Git-Tag: v1.8.1~39 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=3f7d65fbff0773cba736a929667086712884d222 Use -D_POSIX_THREAD_SAFE_FUNCTIONS for MinGW build The latest MinGW only exposes gmtime_r() if this is defined. --- diff --git a/configure.ac b/configure.ac index 0ac6c99b..0c9bca90 100644 --- a/configure.ac +++ b/configure.ac @@ -33,7 +33,7 @@ case "$host_os" in mingw*) # Native Windows WINDOWS_NATIVE_BUILD="yes" - PLATFORM_CPPFLAGS="-D_POSIX -DUNICODE -D_UNICODE -D_CRT_NON_CONFORMING_SWPRINTFS" + PLATFORM_CPPFLAGS="-D_POSIX -D_POSIX_THREAD_SAFE_FUNCTIONS -DUNICODE -D_UNICODE -D_CRT_NON_CONFORMING_SWPRINTFS" PLATFORM_CFLAGS="-municode -mno-ms-bitfields" PLATFORM_LDFLAGS="-no-undefined" WITH_NTFS_3G_DEFAULT="no"