summaryrefslogtreecommitdiff
path: root/sys
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 /sys
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 'sys')
-rw-r--r--sys/sys/types.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/sys/types.h b/sys/sys/types.h
index 8e8d48afb8b..ceb7de5cd45 100644
--- a/sys/sys/types.h
+++ b/sys/sys/types.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: types.h,v 1.43 2015/07/20 23:55:27 uebayasi Exp $ */
+/* $OpenBSD: types.h,v 1.44 2015/09/04 23:47:09 daniel Exp $ */
/* $NetBSD: types.h,v 1.29 1996/11/15 22:48:25 jtc Exp $ */
/*-
@@ -247,8 +247,9 @@ struct uio;
#endif
#ifdef _KERNEL
-#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