]>
git.saurik.com Git - bison.git/blob - lib/stdbool_.h
1 /* Copyright (C) 2001-2002 Free Software Foundation, Inc.
2 Written by Bruno Haible <haible@clisp.cons.org>, 2001.
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2, or (at your option)
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software Foundation,
16 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
21 /* ISO C 99 <stdbool.h> for platforms that lack it. */
23 /* 7.16. Boolean type and values */
25 /* BeOS <sys/socket.h> already #defines false 0, true 1. We use the same
26 definitions below, but temporarily we have to #undef them. */
32 /* For the sake of symbolic names in gdb, define _Bool as an enum type. */
35 typedef enum { false = 0, true = 1 } _Bool
;
42 /* The other macros must be usable in preprocessor directives. */
45 #define __bool_true_false_are_defined 1
47 #endif /* _STDBOOL_H */