Commit 8f27e8f6 authored by Alexandre Julliard's avatar Alexandre Julliard

configure: Define __STDC__ to work around clang breakage in MSVC mode.

parent a09019b7
......@@ -10701,7 +10701,7 @@ then :
printf %s "(cached) " >&6
else $as_nop
eval "$as_wine_cv_crosscc_c99=no"
for arg in '' '-std=gnu99'
for arg in '' '-std=gnu99' '-D__STDC__'
do
test -z "$arg" || CC="$CC $arg"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
......
......@@ -908,7 +908,7 @@ do
AC_MSG_CHECKING([for $CC option to enable C99 features])
AC_CACHE_VAL([wine_cv_crosscc_c99],
[AS_VAR_SET([wine_cv_crosscc_c99],[no])
for arg in '' '-std=gnu99'
for arg in '' '-std=gnu99' '-D__STDC__'
do
test -z "$arg" || CC="$CC $arg"
AC_COMPILE_IFELSE([AC_LANG_SOURCE([$ac_c_conftest_c99_program])],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment