aboutsummaryrefslogtreecommitdiffstats
path: root/common/bool.h
blob: dbb28e15b63d0bc359328782e258c827aac1afa2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef AL_BOOL_H
#define AL_BOOL_H

#ifdef HAVE_STDBOOL_H
#include <stdbool.h>
#endif

#if !defined(__cplusplus) && !defined(bool)
#ifdef HAVE_C99_BOOL
#define bool _Bool
#else
#define bool int
#endif
#define false 0
#define true 1
#endif

#endif /* AL_BOOL_H */