From 2ab3d99967d68c79351fe2a3df22c445447e3010 Mon Sep 17 00:00:00 2001 From: Michał Cichoń Date: Tue, 15 Nov 2011 22:28:48 +0100 Subject: Initial import. --- compatibility/stdbool.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 compatibility/stdbool.h (limited to 'compatibility/stdbool.h') diff --git a/compatibility/stdbool.h b/compatibility/stdbool.h new file mode 100644 index 0000000..1ea9bb1 --- /dev/null +++ b/compatibility/stdbool.h @@ -0,0 +1,11 @@ +#ifndef __STDBOOL_REPLACEMENT__H__ +#define __STDBOOL_REPLACEMENT__H__ + +#ifdef _MSC_VER +typedef enum { __bool_must_promote_to_int = -1, false = 0, true = 1 } __bool; +#define bool __bool +#define false 0 +#define true 1 +#endif + +#endif /* __STDBOOL_REPLACEMENT__H__ */ -- cgit v1.2.3