]> pd.if.org Git - pdclib/blob - includes/stdbool.h
Re-import from Subversion.
[pdclib] / includes / stdbool.h
1 /* ----------------------------------------------------------------------------
2  * $Id$
3  * ----------------------------------------------------------------------------
4  * Public Domain C Library - http://pdclib.sourceforge.net
5  * This code is Public Domain. Use, modify, and redistribute at will.
6  * ----------------------------------------------------------------------------
7  * Boolean type and values
8  * ----------------------------------------------------------------------------
9  * This header is part of a freestanding implementation
10  * --------------------------------------------------------------------------*/
11
12 #ifndef _STDBOOL_H
13 #define _STDBOOL_H _STDBOOL_H
14
15 /* ----------------------------------------------------------------------------
16  * MACROS
17  * --------------------------------------------------------------------------*/
18
19 #define __bool_true_false_are_defined 1
20
21 #ifndef __cplusplus
22
23 #define bool  _Bool
24 #define false 0
25 #define true  1
26
27 /* ----------------------------------------------------------------------------
28  * TYPEDEFS
29  * --------------------------------------------------------------------------*/
30
31 typedef int bool;
32
33 #endif /* __cplusplus */
34
35 #endif /* _STDBOOL_H */