diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-08-27 21:38:42 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-08-27 21:38:42 +0000 |
commit | 478533e034cc7dfd84a042d2a917c06c34ed582b (patch) | |
tree | 17400c5ef60f6b749b4b09f424ab2c2411e54ff1 | |
parent | 2008-08-27 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-478533e034cc7dfd84a042d2a917c06c34ed582b.tar.bz2 |
Use bool/stdbool.h instead of local (non-POSIX compliant) "bool".
-rw-r--r-- | c/src/lib/libbsp/arm/nds/libnds/include/nds/jtypes.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/c/src/lib/libbsp/arm/nds/libnds/include/nds/jtypes.h b/c/src/lib/libbsp/arm/nds/libnds/include/nds/jtypes.h index 2bdf3d3de6..ba8388afef 100644 --- a/c/src/lib/libbsp/arm/nds/libnds/include/nds/jtypes.h +++ b/c/src/lib/libbsp/arm/nds/libnds/include/nds/jtypes.h @@ -122,12 +122,8 @@ typedef struct touchPosition { } touchPosition; -#ifndef __cplusplus -/** C++ compatible bool for C - -*/ -typedef enum { false, true } bool; -#endif +/** C++ compatible bool for C */ +#include <stdbool.h> // Handy function pointer typedefs typedef void ( * IntFn)(void); |