From 6318b9ea172a9822d1c820dabe5bbeb80b7a0dec Mon Sep 17 00:00:00 2001 From: shatty Date: Sat, 2 Aug 2003 04:53:24 +0000 Subject: [PATCH] posix standard stdbool.h git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4192 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/posix/stdbool.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 headers/posix/stdbool.h diff --git a/headers/posix/stdbool.h b/headers/posix/stdbool.h new file mode 100644 index 0000000000..7d9995b0cd --- /dev/null +++ b/headers/posix/stdbool.h @@ -0,0 +1,18 @@ +#ifndef _STDBOOL_H_ +#define _STDBOOL_H_ +/* +** Distributed under the terms of the OpenBeOS License. +*/ + +#ifndef __cplusplus +typedef enum { false = 0, true = 1 } _Bool; +#else +typedef bool _Bool; +#endif +#define bool _Bool + +#define true 1 +#define false 0 +#define __bool_true_false_are_defined 1 + +#endif /* _STDBOOL_H_ */