From f10c1aec57bc330d42322d492d5b5e615bf99bf9 Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Thu, 3 Feb 2005 17:40:15 +0000 Subject: [PATCH] Don't define _Bool for GCC 3.0 and later. It was added was builtin on November 13 2000, which is why before the gcc 3.0 release. --- include/stdbool.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/stdbool.h b/include/stdbool.h index 5845e4d445..e96c4bc2e9 100644 --- a/include/stdbool.h +++ b/include/stdbool.h @@ -24,7 +24,7 @@ * SUCH DAMAGE. * * $FreeBSD: src/include/stdbool.h,v 1.4.2.2 2002/06/19 06:05:26 obrien Exp $ - * $DragonFly: src/include/stdbool.h,v 1.2 2003/06/17 04:25:56 dillon Exp $ + * $DragonFly: src/include/stdbool.h,v 1.3 2005/02/03 17:40:15 joerg Exp $ */ #ifndef _STDBOOL_H_ @@ -34,11 +34,13 @@ #ifndef __cplusplus +#include + #define false 0 #define true 1 #define bool _Bool -#if __STDC_VERSION__ < 199901L +#if __STDC_VERSION__ < 199901L && !__GNUC_PREREQ__(3, 0) typedef int _Bool; #endif -- 2.41.0