From 83334954fe4798465c096746f9dc0b346eed72d0 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Sat, 31 Oct 2009 14:10:33 +0000 Subject: used stdboo.h for bool, true, false svn path=/trunk/externals/pdp/; revision=12702 --- include/pdp_types.h | 15 +++------------ 1 file 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 + /* 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 */ -- cgit v1.2.1