mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-09-22 10:43:39 -04:00
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.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user