Skip to content

Commit

Permalink
configure: Detect newer (>=4.1) versions of MinGW32
Browse files Browse the repository at this point in the history
The MinGW32 project is deprecating its old version macros.
  • Loading branch information
DonDiego committed Dec 13, 2013
1 parent a1d7d55 commit bdc111a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion configure
Expand Up @@ -3416,7 +3416,8 @@ probe_libc(){
elif check_${pfx}cpp_condition _mingw.h "defined __MINGW64_VERSION_MAJOR"; then
eval ${pfx}libc_type=mingw64
add_${pfx}cppflags -U__STRICT_ANSI__ -D__USE_MINGW_ANSI_STDIO=1
elif check_${pfx}cpp_condition _mingw.h "defined __MINGW32_VERSION"; then
elif check_${pfx}cpp_condition _mingw.h "defined __MINGW_VERSION" ||
check_${pfx}cpp_condition _mingw.h "defined __MINGW32_VERSION"; then
eval ${pfx}libc_type=mingw32
check_${pfx}cpp_condition _mingw.h "__MINGW32_MAJOR_VERSION > 3 || \
(__MINGW32_MAJOR_VERSION == 3 && __MINGW32_MINOR_VERSION >= 15)" ||
Expand Down

0 comments on commit bdc111a

Please sign in to comment.