diff options
author | Yang Tse <yangsita@gmail.com> | 2012-12-12 16:39:07 +0100 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2012-12-12 16:39:07 +0100 |
commit | bceb40095af4d8a62d7faec00006a51b870d9062 (patch) | |
tree | 0a8fb78252b5e25db790184a0a9296b0caeb2718 /setup_once.h | |
parent | 98b52964cf0abf92dcaf71c203ff27af8a70a423 (diff) | |
download | c-ares-bceb40095af4d8a62d7faec00006a51b870d9062.tar.gz c-ares-bceb40095af4d8a62d7faec00006a51b870d9062.tar.bz2 c-ares-bceb40095af4d8a62d7faec00006a51b870d9062.zip |
setup_once.h: HP-UX specific TRUE and FALSE definitions
Some HP-UX system headers require TRUE defined to 1 and FALSE to 0.
Diffstat (limited to 'setup_once.h')
-rw-r--r-- | setup_once.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/setup_once.h b/setup_once.h index fc630ef..bb261e7 100644 --- a/setup_once.h +++ b/setup_once.h @@ -300,6 +300,18 @@ struct timeval { /* + * 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. */ |