mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
See if GCC > 2.91 can grok stdbool.h
This commit is contained in:
parent
9f35e25052
commit
b410ffe550
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user