From 1fb908c0dbf5bdde4d4aaaf78b48b6520d52de4c Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Sun, 1 Mar 2009 13:57:40 -0800 Subject: autoconf: detect the broken bool in OpenWatcom 1.8 OpenWatcom 1.8 has a C99 mode, which implements _Bool and . 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. --- compiler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler.h') 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 # else /* This is sort of dangerous, since casts will behave different than -- cgit v1.2.3