summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2016-07-14 13:51:01 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2016-07-14 13:51:01 -0700
commit2fc232bd235f969224e6238fb037720d6de8449e (patch)
treec219793314d78b460122a71065e484da15bb78ac
parentf640b61d55e0c238883a2769540f7c7d946b5117 (diff)
downloadnasm-2fc232bd235f969224e6238fb037720d6de8449e.tar.gz
compiler.h: always undefine __STRICT_ANSI__ for gcc
It is not just DJGPP which has broken header files if __STRICT_ANSI__ is defined. Cygwin has also been confirmed to have problems. It would be somewhat different if configure didn't still detect those functions. Undefine __STRICT_ANSI__ for all gcc platforms. If this breaks then, well, we'll have to really narrow down the problems. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
-rw-r--r--compiler.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/compiler.h b/compiler.h
index 7daf6ec9..1e6842e7 100644
--- a/compiler.h
+++ b/compiler.h
@@ -43,8 +43,11 @@
#ifndef NASM_COMPILER_H
#define NASM_COMPILER_H 1
-#ifdef __DJGPP__
-/* DJGPP has header file problems if __STRICT_ANSI__ is defined */
+/*
+ * At least DJGPP and Cygwin have broken header files if __STRICT_ANSI__
+ * is defined.
+ */
+#ifdef __GNUC__
# undef __STRICT_ANSI__
#endif