From: <zw...@ma...> - 2009-05-11 04:29:56
|
Author: zwelch Date: 2009-05-11 04:29:53 +0200 (Mon, 11 May 2009) New Revision: 1701 Modified: trunk/src/helper/types.h Log: Finish portability support for AC_HEADER_STDBOOL configure macro. Modified: trunk/src/helper/types.h =================================================================== --- trunk/src/helper/types.h 2009-05-11 02:27:16 UTC (rev 1700) +++ trunk/src/helper/types.h 2009-05-11 02:29:53 UTC (rev 1701) @@ -54,15 +54,20 @@ #else /* HAVE_STDBOOL_H */ #define __bool_true_false_are_defined 1 +#ifndef HAVE__BOOL #ifndef __cplusplus #define false 0 #define true 1 -#define bool _Bool typedef int _Bool; +#else +typedef bool _Bool; #endif /* __cplusplus */ +#endif /* HAVE__BOOL */ +#define bool _Bool + #endif /* HAVE_STDBOOL_H */ /* DANGER!!!! here be dragons! |