2005-03-26 18:01:40 +00:00
|
|
|
/*
|
2005-03-25 17:08:27 +00:00
|
|
|
* Copyright 2005, Haiku Inc. All Rights Reserved.
|
|
|
|
* Distributed under the terms of the MIT License.
|
2005-03-26 18:01:40 +00:00
|
|
|
*/
|
|
|
|
#ifndef _STDBOOL_H_
|
|
|
|
#define _STDBOOL_H_
|
|
|
|
|
|
|
|
#ifndef __bool_true_false_are_defined
|
2003-08-02 04:53:24 +00:00
|
|
|
|
|
|
|
#ifndef __cplusplus
|
2005-03-26 18:01:40 +00:00
|
|
|
//typedef enum { false = 0, true = 1 } _Bool;
|
|
|
|
// ToDo: this would change the bool size compared to standard BeOS
|
|
|
|
typedef unsigned char _Bool;
|
|
|
|
# define bool _Bool
|
|
|
|
# define true 1
|
|
|
|
# define false 0
|
2003-08-02 04:53:24 +00:00
|
|
|
#else
|
2005-03-26 18:01:40 +00:00
|
|
|
# define _Bool bool
|
|
|
|
# define bool bool
|
|
|
|
# define true true
|
|
|
|
# define false false
|
2003-08-02 04:53:24 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#define __bool_true_false_are_defined 1
|
|
|
|
|
2005-03-26 18:01:40 +00:00
|
|
|
#endif // __bool_true_false_are_defined
|
|
|
|
|
2003-08-02 04:53:24 +00:00
|
|
|
#endif /* _STDBOOL_H_ */
|