summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2012-12-12 15:39:07 (GMT)
committerYang Tse <yangsita@gmail.com>2012-12-12 15:39:07 (GMT)
commitbceb40095af4d8a62d7faec00006a51b870d9062 (patch)
tree0a8fb78252b5e25db790184a0a9296b0caeb2718
parent98b52964cf0abf92dcaf71c203ff27af8a70a423 (diff)
downloadc-ares-bceb40095af4d8a62d7faec00006a51b870d9062.zip
c-ares-bceb40095af4d8a62d7faec00006a51b870d9062.tar.gz
c-ares-bceb40095af4d8a62d7faec00006a51b870d9062.tar.bz2
setup_once.h: HP-UX specific TRUE and FALSE definitions
Some HP-UX system headers require TRUE defined to 1 and FALSE to 0.
-rw-r--r--setup_once.h12
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.
*/