190075Sobrien/* Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc. 252143Sobrien 3132718SkanThis file is part of GCC. 452143Sobrien 5132718SkanGCC is free software; you can redistribute it and/or modify 690075Sobrienit under the terms of the GNU General Public License as published by 790075Sobrienthe Free Software Foundation; either version 2, or (at your option) 890075Sobrienany later version. 990075Sobrien 10132718SkanGCC is distributed in the hope that it will be useful, 1190075Sobrienbut WITHOUT ANY WARRANTY; without even the implied warranty of 1290075SobrienMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1390075SobrienGNU General Public License for more details. 1490075Sobrien 1590075SobrienYou should have received a copy of the GNU General Public License 16132718Skanalong with GCC; see the file COPYING. If not, write to 17169689Skanthe Free Software Foundation, 51 Franklin Street, Fifth Floor, 18169689SkanBoston, MA 02110-1301, USA. */ 1990075Sobrien 2090075Sobrien/* As a special exception, if you include this header file into source 2190075Sobrien files compiled by GCC, this header file does not by itself cause 2290075Sobrien the resulting executable to be covered by the GNU General Public 2390075Sobrien License. This exception does not however invalidate any other 2490075Sobrien reasons why the executable file might be covered by the GNU General 2590075Sobrien Public License. */ 2690075Sobrien 2790075Sobrien/* 2890075Sobrien * ISO C Standard: 7.16 Boolean type and values <stdbool.h> 2990075Sobrien */ 3090075Sobrien 3190075Sobrien#ifndef _STDBOOL_H 3290075Sobrien#define _STDBOOL_H 3390075Sobrien 3490075Sobrien#ifndef __cplusplus 3590075Sobrien 3690075Sobrien#define bool _Bool 3790075Sobrien#define true 1 3890075Sobrien#define false 0 3990075Sobrien 4090075Sobrien#else /* __cplusplus */ 4190075Sobrien 4290075Sobrien/* Supporting <stdbool.h> in C++ is a GCC extension. */ 4390075Sobrien#define _Bool bool 4490075Sobrien#define bool bool 4552143Sobrien#define false false 4652143Sobrien#define true true 4752143Sobrien 4890075Sobrien#endif /* __cplusplus */ 4990075Sobrien 5052143Sobrien/* Signal that all the definitions are present. */ 5152143Sobrien#define __bool_true_false_are_defined 1 5252143Sobrien 5352143Sobrien#endif /* stdbool.h */ 54