summaryrefslogtreecommitdiffstats
path: root/include/stdbool.h
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2002-08-16 07:33:14 +0000
committeralfred <alfred@FreeBSD.org>2002-08-16 07:33:14 +0000
commit9c6aa2dcd89da0a5049bc9b16ed81edbe0177cab (patch)
tree46798d8033a0f6678bb6f46423d704357badea6f /include/stdbool.h
parent997e76e7c026ba7f195acaeee3482396e76ee80c (diff)
downloadFreeBSD-src-9c6aa2dcd89da0a5049bc9b16ed81edbe0177cab.zip
FreeBSD-src-9c6aa2dcd89da0a5049bc9b16ed81edbe0177cab.tar.gz
add a check for GNUC < 3 to typedef bool because gcc 3 always seems to
define it. Suggested by: tjr
Diffstat (limited to 'include/stdbool.h')
-rw-r--r--include/stdbool.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stdbool.h b/include/stdbool.h
index f31e63e..c0ce8bb 100644
--- a/include/stdbool.h
+++ b/include/stdbool.h
@@ -37,7 +37,7 @@
#define true 1
#define bool _Bool
-#if __STDC_VERSION__ < 199901L
+#if __STDC_VERSION__ < 199901L && __GNUC__ < 3
typedef int _Bool;
#endif
OpenPOWER on IntegriCloud