diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/bool.h | 18 |
1 files changed, 18 insertions, 0 deletions
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 <stdbool.h> +#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 */ |