diff options
author | kc8apf <kc8apf@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-02-10 18:21:17 +0000 |
---|---|---|
committer | kc8apf <kc8apf@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-02-10 18:21:17 +0000 |
commit | e77ae9096a40707d3b878b46969a60a06656dc06 (patch) | |
tree | 356ba1722b9c2f83e4723c404ecbeac3a71615f3 /src/helper | |
parent | 725749de206e24b2d54f0ac72296f545baca3007 (diff) | |
download | openocd+libswd-e77ae9096a40707d3b878b46969a60a06656dc06.tar.gz openocd+libswd-e77ae9096a40707d3b878b46969a60a06656dc06.tar.bz2 openocd+libswd-e77ae9096a40707d3b878b46969a60a06656dc06.tar.xz openocd+libswd-e77ae9096a40707d3b878b46969a60a06656dc06.zip |
Use C89/C99/C++ compliant boolean types
git-svn-id: svn://svn.berlios.de/openocd/trunk@1370 b42882b7-edfa-0310-969c-e2dbd0fdcd60
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! * |