]> arthur.barton.de Git - netatalk.git/blob - include/atalk/boolean.h
Merge master
[netatalk.git] / include / atalk / boolean.h
1 #ifndef _ATALK_BOOLEAN_H
2 #define _ATALK_BOOLEAN_H 1
3
4 /*
5  * bool is a standard type in c++. In theory its one bit in size.
6  *  In reality just use the quickest standard type.  
7  */
8
9 # ifndef __cplusplus
10 #  ifndef bool
11 typedef char bool;
12
13 /*
14  * bool, true and false
15  *
16  */
17
18 #  endif   /* ndef bool */
19 # endif   /* not C++ */
20 # ifndef true
21 #  define true    ((bool) 1)
22 # endif
23 # ifndef false
24 #  define false   ((bool) 0)
25 # endif
26 typedef bool *BoolPtr;
27
28 # ifndef TRUE
29 #  define TRUE    1
30 # endif   /* TRUE */
31
32 # ifndef FALSE
33 #  define FALSE   0
34 # endif   /* FALSE */
35
36 #endif