Mercurial > hg > CbC > CbC_gcc
comparison gcc/ginclude/stdbool.h @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | a06113de4d67 |
children | 84e7813d76e9 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* Copyright (C) 1998, 1999, 2000, 2009 Free Software Foundation, Inc. | 1 /* Copyright (C) 1998-2017 Free Software Foundation, Inc. |
2 | 2 |
3 This file is part of GCC. | 3 This file is part of GCC. |
4 | 4 |
5 GCC is free software; you can redistribute it and/or modify | 5 GCC is free software; you can redistribute it and/or modify |
6 it under the terms of the GNU General Public License as published by | 6 it under the terms of the GNU General Public License as published by |
34 #define true 1 | 34 #define true 1 |
35 #define false 0 | 35 #define false 0 |
36 | 36 |
37 #else /* __cplusplus */ | 37 #else /* __cplusplus */ |
38 | 38 |
39 /* Supporting <stdbool.h> in C++ is a GCC extension. */ | 39 /* Supporting _Bool in C++ is a GCC extension. */ |
40 #define _Bool bool | 40 #define _Bool bool |
41 | |
42 #if __cplusplus < 201103L | |
43 /* Defining these macros in C++98 is a GCC extension. */ | |
41 #define bool bool | 44 #define bool bool |
42 #define false false | 45 #define false false |
43 #define true true | 46 #define true true |
47 #endif | |
44 | 48 |
45 #endif /* __cplusplus */ | 49 #endif /* __cplusplus */ |
46 | 50 |
47 /* Signal that all the definitions are present. */ | 51 /* Signal that all the definitions are present. */ |
48 #define __bool_true_false_are_defined 1 | 52 #define __bool_true_false_are_defined 1 |