summaryrefslogtreecommitdiffstats
path: root/include/stdbool.h
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2005-02-19 13:47:33 +0000
committermarius <marius@FreeBSD.org>2005-02-19 13:47:33 +0000
commitaf1bace0d6851ea89ba1fc62572600c2449800aa (patch)
treedb4c7ef3c23ad4e8ab8a499e5050855d0a5321a1 /include/stdbool.h
parent63e23f028ec6c69702a3d74bcd09618526ffcc7a (diff)
downloadFreeBSD-src-af1bace0d6851ea89ba1fc62572600c2449800aa.zip
FreeBSD-src-af1bace0d6851ea89ba1fc62572600c2449800aa.tar.gz
The Intel C/C++ compiler doesn't require a typedef for _Bool when compiling
C source so don't declare one when using the GCC-compatibility (defaulting to GCC 2.95.0) of ICC. Submitted by: netchild MFC after: 1 week
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 c0ce8bb..c0d6459 100644
--- a/include/stdbool.h
+++ b/include/stdbool.h
@@ -37,7 +37,7 @@
#define true 1
#define bool _Bool
-#if __STDC_VERSION__ < 199901L && __GNUC__ < 3
+#if __STDC_VERSION__ < 199901L && __GNUC__ < 3 && !defined(__INTEL_COMPILER)
typedef int _Bool;
#endif
OpenPOWER on IntegriCloud