From: Yang Tse Date: Wed, 12 Dec 2012 15:39:07 +0000 (+0100) Subject: setup_once.h: HP-UX specific TRUE and FALSE definitions X-Git-Tag: upstream/1.10.0~73 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bceb40095af4d8a62d7faec00006a51b870d9062;p=platform%2Fupstream%2Fc-ares.git setup_once.h: HP-UX specific TRUE and FALSE definitions Some HP-UX system headers require TRUE defined to 1 and FALSE to 0. --- diff --git a/setup_once.h b/setup_once.h index fc630ef..bb261e7 100644 --- a/setup_once.h +++ b/setup_once.h @@ -299,6 +299,18 @@ struct timeval { #endif +/* + * Some HP-UX system headers require TRUE defined to 1 and FALSE to 0. + */ + +#if defined(__hpux) +#undef TRUE +#define TRUE 1 +#undef FALSE +#define FALSE 0 +#endif + + /* * Macro WHILE_FALSE may be used to build single-iteration do-while loops, * avoiding compiler warnings. Mostly intended for other macro definitions.