Use C89/C99/C++ compliant boolean types

git-svn-id: svn://svn.berlios.de/openocd/trunk@1370 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
kc8apf
2009-02-10 18:21:17 +00:00
parent 725749de20
commit e77ae9096a
14 changed files with 54 additions and 30 deletions

View File

@@ -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!
*