Skip to content

Commit d383850

Browse files
committed
Try fix 64-bit time support for 32-bit build again
1 parent 0145943 commit d383850

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

configure.ac

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1010,6 +1010,13 @@ if test -z "$CFLAGS"; then
10101010
CFLAGS=
10111011
fi
10121012

1013+
dnl Build 32-bit mingw-w64 platform with 64-bit time support.
1014+
case $host in
1015+
i686-*-mingw*)
1016+
CFLAGS="$CFLAGS -D__MINGW_USE_VC2005_COMPAT"
1017+
;;
1018+
esac
1019+
10131020
dnl Emscripten SDK and WASI SDK default to wasm32.
10141021
dnl On Emscripten use MEMORY64 setting to build target wasm64-emscripten.
10151022
dnl for wasm64.
@@ -2646,7 +2653,7 @@ yes)
26462653
# this only occues on mingw
26472654
case $host in
26482655
*-*-mingw*)
2649-
CFLAGS_NODIST="$CFLAGS_NODIST -Wno-error=incompatible-pointer-types -D__MINGW_USE_VC2005_COMPAT"
2656+
CFLAGS_NODIST="$CFLAGS_NODIST -Wno-error=incompatible-pointer-types"
26502657
;;
26512658
esac
26522659

0 commit comments

Comments
 (0)