summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Dickman <daniel@cvs.openbsd.org>2015-09-04 23:47:10 +0000
committerDaniel Dickman <daniel@cvs.openbsd.org>2015-09-04 23:47:10 +0000
commit3d3d7801309b0ccc1d067d7d90e6a4a5f42702f4 (patch)
treea56ee17b3ff98f76f13af70ce63e471052f55fe7 /include
parentad462dcfa0dc27c3061d3978d9fbe97c13f987b3 (diff)
These days pcc defines __GNUC__ and we don't support gcc2. Also needed
for upcoming CompCert port. Final version of the diff is from kettenis@ with input from jsg@ and tedu@. ok kettenis@, jsg@, "I agree" millert@
Diffstat (limited to 'include')
-rw-r--r--include/stdbool.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/stdbool.h b/include/stdbool.h
index c0b6565078f..077c12ae441 100644
--- a/include/stdbool.h
+++ b/include/stdbool.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: stdbool.h,v 1.6 2014/03/16 18:38:30 guenther Exp $ */
+/* $OpenBSD: stdbool.h,v 1.7 2015/09/04 23:47:09 daniel Exp $ */
/*
* Written by Marc Espie, September 25, 1999
@@ -10,8 +10,9 @@
#ifndef __cplusplus
-#if (defined(__GNUC__) && __GNUC__ >= 3) || defined(__PCC__)
-/* Support for _C99: type _Bool is already built-in. */
+#if defined(__GNUC__) || \
+ (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901)
+/* Support for C99: type _Bool is already built-in. */
#define false 0
#define true 1