]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/ginclude/stdbool.h
Update copyright years.
[thirdparty/gcc.git] / gcc / ginclude / stdbool.h
index a95151028bc65b40662b9d2597c670a9e98032c5..2d2ee29ad511f4dab01c463fe0b7e76c957565da 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1998-2015 Free Software Foundation, Inc.
+/* Copyright (C) 1998-2024 Free Software Foundation, Inc.
 
 This file is part of GCC.
 
@@ -30,22 +30,19 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 
 #ifndef __cplusplus
 
+#if defined __STDC_VERSION__ && __STDC_VERSION__ > 201710L
+/* bool, true and false are keywords.  */
+#else
 #define bool   _Bool
 #define true   1
 #define false  0
+#endif
 
 #else /* __cplusplus */
 
 /* Supporting _Bool in C++ is a GCC extension.  */
 #define _Bool  bool
 
-#if __cplusplus < 201103L
-/* Defining these macros in C++98 is a GCC extension.  */
-#define bool   bool
-#define false  false
-#define true   true
-#endif
-
 #endif /* __cplusplus */
 
 /* Signal that all the definitions are present.  */