aab32edf08
SupportDefs.h now includes stdbool.h This can break in some cases git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11985 a95241bf-73f2-0310-859d-f6bbb57e9c96
22 lines
402 B
C
22 lines
402 B
C
#ifndef _STDBOOL_H_
|
|
#define _STDBOOL_H_
|
|
/*
|
|
* Copyright 2005, Haiku Inc. All Rights Reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
|
|
#ifndef __cplusplus
|
|
typedef enum { false = 0, true = 1 } _Bool;
|
|
#define true 1
|
|
#define false 0
|
|
#else
|
|
typedef bool _Bool;
|
|
#define true true
|
|
#define false false
|
|
#endif
|
|
#define bool _Bool
|
|
|
|
#define __bool_true_false_are_defined 1
|
|
|
|
#endif /* _STDBOOL_H_ */
|