From: Yang Tse Date: Wed, 12 Dec 2012 15:13:16 +0000 (+0100) Subject: setup_once.h: HP-UX specific TRUE and FALSE definitions X-Git-Tag: curl-7_29_0~215 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f254c59dc7d3559d062c00704e00431bc4504b67;p=curl 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/lib/setup_once.h b/lib/setup_once.h index eb14e5886..0bf49b72e 100644 --- a/lib/setup_once.h +++ b/lib/setup_once.h @@ -316,6 +316,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.