diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2009-10-31 14:10:33 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2009-10-31 14:10:33 +0000 |
commit | 83334954fe4798465c096746f9dc0b346eed72d0 (patch) | |
tree | a1fcf7768d8fe0ffb9a21202076c50eb53293d54 | |
parent | ac8fb20a112a207e20742a605cd1ab0464d07c94 (diff) |
used stdboo.h for bool, true, false
svn path=/trunk/externals/pdp/; revision=12702
-rw-r--r-- | include/pdp_types.h | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/include/pdp_types.h b/include/pdp_types.h index d2b0586..3842a66 100644 --- a/include/pdp_types.h +++ b/include/pdp_types.h @@ -24,6 +24,9 @@ #ifndef PDP_TYPES_H #define PDP_TYPES_H +/* C99 standard header for bool, true, and false */ +#include <stdbool.h> + /* check http://www.unix.org/whitepapers/64bit.html on unix (LP64) int = 32bit @@ -45,18 +48,6 @@ typedef unsigned short u16; typedef unsigned int u32; typedef unsigned long long u64; - -#ifndef bool -typedef int bool; -#endif -#ifndef true -#define true 1; -#endif -#ifndef false -#define false 0; -#endif - - typedef struct _pdp t_pdp; typedef void (*t_pdp_packet_method1)(t_pdp *); /* dst */ typedef void (*t_pdp_packet_method2)(t_pdp *, t_pdp *); /* dst, src */ |