diff options
Diffstat (limited to 'src/helper')
-rw-r--r-- | src/helper/types.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/helper/types.h b/src/helper/types.h index 82368a92..047f76c2 100644 --- a/src/helper/types.h +++ b/src/helper/types.h @@ -45,6 +45,21 @@ typedef unsigned long long u64; typedef struct jtag_tap_s jtag_tap_t; +#ifdef HAVE_STDBOOL_H +#include <stdbool.h> +#else /* HAVE_STDBOOL_H */ +#define __bool_true_false_are_defined 1 + +#ifndef __cplusplus + +#define false 0 +#define true 1 + +#define bool _Bool +typedef int _Bool; +#endif /* __cplusplus */ + +#endif /* HAVE_STDBOOL_H */ /* DANGER!!!! here be dragons! * |