See if GCC > 2.91 can grok stdbool.h

This commit is contained in:
jst%mozilla.jstenback.com 2004-07-16 18:57:49 +00:00
parent 9f35e25052
commit b410ffe550

View File

@ -89,13 +89,7 @@
#include <stdint.h>
#if !defined(__GNUC__) || (__GNUC__ > 2 || __GNUC_MINOR__ > 91)
/*
* Non-GCC compilers, or GCC > 2.91 need a typedef for bool
* (unless one already exists) for C code.
*/
#if !defined(__cplusplus) && !defined(bool)
typedef int bool;
#endif
#include <stdbool.h>
#else
/*
* GCC 2.91 can't deal with a typedef for bool, but a #define