2003-08-02 04:53:24 +00:00
|
|
|
#ifndef _STDBOOL_H_
|
|
|
|
#define _STDBOOL_H_
|
|
|
|
/*
|
2005-03-25 17:08:27 +00:00
|
|
|
* Copyright 2005, Haiku Inc. All Rights Reserved.
|
|
|
|
* Distributed under the terms of the MIT License.
|
2003-08-02 04:53:24 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __cplusplus
|
|
|
|
typedef enum { false = 0, true = 1 } _Bool;
|
2005-03-25 17:08:27 +00:00
|
|
|
#define true 1
|
|
|
|
#define false 0
|
2003-08-02 04:53:24 +00:00
|
|
|
#else
|
|
|
|
typedef bool _Bool;
|
2005-03-25 17:08:27 +00:00
|
|
|
#define true true
|
|
|
|
#define false false
|
2003-08-02 04:53:24 +00:00
|
|
|
#endif
|
|
|
|
#define bool _Bool
|
|
|
|
|
|
|
|
#define __bool_true_false_are_defined 1
|
|
|
|
|
|
|
|
#endif /* _STDBOOL_H_ */
|