diff options
Diffstat (limited to 'src/pulsecore/macro.h')
-rw-r--r-- | src/pulsecore/macro.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/pulsecore/macro.h b/src/pulsecore/macro.h index ec451547..d0dff5e1 100644 --- a/src/pulsecore/macro.h +++ b/src/pulsecore/macro.h @@ -72,6 +72,21 @@ static inline size_t pa_page_align(size_t l) { #define MIN(a, b) ((a) < (b) ? (a) : (b)) #endif +/* This type is not intended to be used in exported APIs! Use classic "int" there! */ +#ifdef HAVE_STD_BOOL +typedef _Bool pa_bool_t; +#else +typedef int pa_bool_t; +#endif + +#ifndef FALSE +#define FALSE ((pa_bool_t) 0) +#endif + +#ifndef TRUE +#define TRUE (!FALSE) +#endif + #ifdef __GNUC__ #define PA_PRETTY_FUNCTION __PRETTY_FUNCTION__ #else |