Browse code

When building for MinGW32 disable strict ANSI compliancy.

When -std=c99 is used, GCC defines __STRICT_ANSI__ to hide non-ANSI
interfaces; on MinGW32, when this macro is defined, some functions that are
part of POSIX but not of Windows APIs are disabled, including strcasecmp().

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>

Diego Elio Pettenò authored on 2011/03/24 20:18:35
Showing 1 changed files
... ...
@@ -2428,6 +2428,7 @@ case $target_os in
2428 2428
         check_cpp_condition _mingw.h "defined (__MINGW64_VERSION_MAJOR) || (__MINGW32_MAJOR_VERSION > 3) \
2429 2429
                                       || (__MINGW32_MAJOR_VERSION == 3 && __MINGW32_MINOR_VERSION >= 15)" ||
2430 2430
                 die "ERROR: MinGW runtime version must be >= 3.15."
2431
+        add_cppflags -U__STRICT_ANSI__
2431 2432
         ;;
2432 2433
     cygwin*)
2433 2434
         target_os=cygwin