diff options
Diffstat (limited to 'common/bool.h')
-rw-r--r-- | common/bool.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/common/bool.h b/common/bool.h new file mode 100644 index 00000000..6f714d09 --- /dev/null +++ b/common/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 */ |