diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-10-18 19:12:39 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-10-18 19:14:08 -0700 |
commit | 26573020d8618dc929cf27fa549f59298e3f70a2 (patch) | |
tree | 19e888d7c1ba06b07612b0c1b3bff2177a2f0150 /compiler.h | |
parent | 8088815922a1c8fb185f4e4a7b57ddaf0f13f340 (diff) | |
download | nasm-26573020d8618dc929cf27fa549f59298e3f70a2.tar.gz nasm-26573020d8618dc929cf27fa549f59298e3f70a2.tar.bz2 nasm-26573020d8618dc929cf27fa549f59298e3f70a2.zip |
Cleaner solution for MinGW handling of __STRICT_ANSI__
If MinGW is detected, undefine __STRICT_ANSI__ in compiler.h instead.
Diffstat (limited to 'compiler.h')
-rw-r--r-- | compiler.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -24,6 +24,11 @@ # include "config.h" #endif +/* __STRICT_ANSI__ buggers up MinGW, so disable it */ +#ifdef __MINGW32__ +# undef __STRICT_ANSI__ +#endif + /* This is required to get the standard <inttypes.h> macros when compiling with a C++ compiler. This must be defined *before* <inttypes.h> is included, directly or indirectly. */ |