1*53ee8cc1Swenshuai.xi /* Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc. 2*53ee8cc1Swenshuai.xi 3*53ee8cc1Swenshuai.xi This file is part of GCC. 4*53ee8cc1Swenshuai.xi 5*53ee8cc1Swenshuai.xi GCC is free software; you can redistribute it and/or modify 6*53ee8cc1Swenshuai.xi it under the terms of the GNU General Public License as published by 7*53ee8cc1Swenshuai.xi the Free Software Foundation; either version 2, or (at your option) 8*53ee8cc1Swenshuai.xi any later version. 9*53ee8cc1Swenshuai.xi 10*53ee8cc1Swenshuai.xi GCC is distributed in the hope that it will be useful, 11*53ee8cc1Swenshuai.xi but WITHOUT ANY WARRANTY; without even the implied warranty of 12*53ee8cc1Swenshuai.xi MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13*53ee8cc1Swenshuai.xi GNU General Public License for more details. 14*53ee8cc1Swenshuai.xi 15*53ee8cc1Swenshuai.xi You should have received a copy of the GNU General Public License 16*53ee8cc1Swenshuai.xi along with GCC; see the file COPYING. If not, write to 17*53ee8cc1Swenshuai.xi the Free Software Foundation, 51 Franklin Street, Fifth Floor, 18*53ee8cc1Swenshuai.xi Boston, MA 02110-1301, USA. */ 19*53ee8cc1Swenshuai.xi 20*53ee8cc1Swenshuai.xi /* As a special exception, if you include this header file into source 21*53ee8cc1Swenshuai.xi files compiled by GCC, this header file does not by itself cause 22*53ee8cc1Swenshuai.xi the resulting executable to be covered by the GNU General Public 23*53ee8cc1Swenshuai.xi License. This exception does not however invalidate any other 24*53ee8cc1Swenshuai.xi reasons why the executable file might be covered by the GNU General 25*53ee8cc1Swenshuai.xi Public License. */ 26*53ee8cc1Swenshuai.xi 27*53ee8cc1Swenshuai.xi /* 28*53ee8cc1Swenshuai.xi * ISO C Standard: 7.16 Boolean type and values <stdbool.h> 29*53ee8cc1Swenshuai.xi */ 30*53ee8cc1Swenshuai.xi 31*53ee8cc1Swenshuai.xi #ifndef _STDBOOL_H 32*53ee8cc1Swenshuai.xi #define _STDBOOL_H 33*53ee8cc1Swenshuai.xi 34*53ee8cc1Swenshuai.xi #ifndef __cplusplus 35*53ee8cc1Swenshuai.xi 36*53ee8cc1Swenshuai.xi #define bool _Bool 37*53ee8cc1Swenshuai.xi #define true 1 38*53ee8cc1Swenshuai.xi #define false 0 39*53ee8cc1Swenshuai.xi 40*53ee8cc1Swenshuai.xi #else /* __cplusplus */ 41*53ee8cc1Swenshuai.xi 42*53ee8cc1Swenshuai.xi /* Supporting <stdbool.h> in C++ is a GCC extension. */ 43*53ee8cc1Swenshuai.xi #define _Bool bool 44*53ee8cc1Swenshuai.xi #define bool bool 45*53ee8cc1Swenshuai.xi #define false false 46*53ee8cc1Swenshuai.xi #define true true 47*53ee8cc1Swenshuai.xi 48*53ee8cc1Swenshuai.xi #endif /* __cplusplus */ 49*53ee8cc1Swenshuai.xi 50*53ee8cc1Swenshuai.xi /* Signal that all the definitions are present. */ 51*53ee8cc1Swenshuai.xi #define __bool_true_false_are_defined 1 52*53ee8cc1Swenshuai.xi 53*53ee8cc1Swenshuai.xi #endif /* stdbool.h */ 54