From 38b98de78eceb77e0b2acc84877bf425ba0fb07d Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 6 May 2014 23:10:50 -0700 Subject: Check for C99 _Bool support --- include/bool.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 include/bool.h (limited to 'include/bool.h') diff --git a/include/bool.h b/include/bool.h new file mode 100644 index 00000000..6f714d09 --- /dev/null +++ b/include/bool.h @@ -0,0 +1,18 @@ +#ifndef AL_BOOL_H +#define AL_BOOL_H + +#ifdef HAVE_STDBOOL_H +#include +#endif + +#ifndef bool +#ifdef HAVE_C99_BOOL +#define bool _Bool +#else +#define bool int +#endif +#define false 0 +#define true 1 +#endif + +#endif /* AL_BOOL_H */ -- cgit v1.2.3