Commit 9871fbbc authored by Ralph Giles's avatar Ralph Giles
Browse files

Fix mingw warnings with -U__STRICT_ANSI__.

We use some C99 features (like lrintf) despite passing
-std=c89 -pedantic. This works on normal linux and mac
builds because we define _GNU_SOURCE, which enables
them, but the mingw32 headers ignore this, generating
warnings for lrintf and _putenv, the later hacked in
by libtool.

Avoid these by undefining __STRICT_ANSI__ in mingw builds,
which allows the default extensions and fixes the warnings.
parent 8a52a14d
......@@ -86,6 +86,14 @@ CC_ATTRIBUTE_VISIBILITY([default], [
CC_CHECK_CFLAGS_APPEND([-std=c89 -pedantic -Wall -Wextra -Wno-parentheses -Wno-long-long])
# Platform-specific tweaks
case $host in
# -std=c89 causes some warnings under mingw.
dnl Check for doxygen
AS_HELP_STRING([--disable-doc], [Do not build API documentation]),,
Supports Markdown
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