mirror of
https://github.com/gbowne1/ClassicOS.git
synced 2025-02-22 21:31:53 -08:00
35 lines
438 B
C
35 lines
438 B
C
|
#ifndef __CLASSIC_OS_KSTDC_STDBOOL_H__
|
||
|
#define __CLASSIC_OS_KSTDC_STDBOOL_H__ 1
|
||
|
|
||
|
#ifndef __cplusplus
|
||
|
|
||
|
#undef bool
|
||
|
|
||
|
#ifdef _Bool
|
||
|
|
||
|
#define bool _Bool
|
||
|
|
||
|
#undef true
|
||
|
#define true 1
|
||
|
#undef false
|
||
|
#define false 0
|
||
|
|
||
|
#else
|
||
|
|
||
|
typedef enum bool_t
|
||
|
{
|
||
|
false,
|
||
|
true,
|
||
|
} bool;
|
||
|
|
||
|
#endif
|
||
|
|
||
|
#endif
|
||
|
|
||
|
#ifdef __bool_true_false_are_defined
|
||
|
#undef __bool_true_false_are_defined
|
||
|
#endif
|
||
|
#define __bool_true_false_are_defined 1
|
||
|
|
||
|
#endif // __CLASSIC_OS_KSTDC_STDBOOL_H__
|