summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-10-18 18:15:18 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-10-18 19:14:08 -0700
commit8088815922a1c8fb185f4e4a7b57ddaf0f13f340 (patch)
tree9fc38f52621c7edde527a7ebb23e30ad992d92ee
parent684f98b6360558eb4a2ddf061378ae0f90584259 (diff)
downloadnasm-8088815922a1c8fb185f4e4a7b57ddaf0f13f340.tar.gz
configure: Undefine __STRICT_ANSI__ for mingw's benefit
mingw makes a bunch of prototypes unavailable if __STRICT_ANSI__ is defined. However, they are still detected by configure, which causes us pain.
-rw-r--r--configure.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 93759fd8..8cbde3ca 100644
--- a/configure.in
+++ b/configure.in
@@ -67,6 +67,9 @@ PA_ADD_CFLAGS([-W])
PA_ADD_CFLAGS([-Wall])
PA_ADD_CFLAGS([-std=c99])
PA_ADD_CFLAGS([-pedantic])
+dnl mingw disables a bunch of features if __STRICT_ANSI__ is defined,
+dnl and -std=c99 defines __STRICT_ANSI__
+PA_ADD_CFLAGS([-U__STRICT_ANSI__])
dnl Look for "nroff" or "groff"
AC_CHECK_PROGS(NROFF, nroff, echo)