summaryrefslogtreecommitdiff
path: root/compiler.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-03-01 13:57:40 -0800
committerH. Peter Anvin <hpa@zytor.com>2009-03-01 13:57:40 -0800
commit1fb908c0dbf5bdde4d4aaaf78b48b6520d52de4c (patch)
treef4850a76f97b9bdfa7885f56bba70e2285a045c4 /compiler.h
parent16a856cd851858f80b1ef407d77f92df309e5909 (diff)
downloadnasm-1fb908c0dbf5bdde4d4aaaf78b48b6520d52de4c.tar.gz
nasm-1fb908c0dbf5bdde4d4aaaf78b48b6520d52de4c.tar.bz2
nasm-1fb908c0dbf5bdde4d4aaaf78b48b6520d52de4c.zip
autoconf: detect the broken bool in OpenWatcom 1.8
OpenWatcom 1.8 has a C99 mode, which implements _Bool and <stdbool.h>. Unfortunately the implementation is broken, and doesn't let _Bool be implicitly converted to integer (as required by the C99 spec). Detect this case in autoconf.
Diffstat (limited to 'compiler.h')
-rw-r--r--compiler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler.h b/compiler.h
index 5e7e8c4..2c4cc9d 100644
--- a/compiler.h
+++ b/compiler.h
@@ -78,7 +78,7 @@ int vsnprintf(char *, size_t, const char *, va_list);
#endif
#ifndef __cplusplus /* C++ has false, true, bool as keywords */
-# ifdef HAVE_STDBOOL_H
+# if defined(HAVE_STDBOOL_H) && defined(HAVE_WORKING_BOOL)
# include <stdbool.h>
# else
/* This is sort of dangerous, since casts will behave different than