aboutsummaryrefslogtreecommitdiffstats
path: root/common/bool.h
blob: eb1d91746f2f1f471b9f588e5582eb08900d8532 (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(bool) && !defined(__cplusplus)
#ifdef HAVE_C99_BOOL
#define bool _Bool
#else
#define bool int
#endif
#define false 0
#define true 1
#endif

#endif /* AL_BOOL_H */