aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2012-12-12 16:13:16 +0100
committerYang Tse <yangsita@gmail.com>2012-12-12 16:14:24 +0100
commitf254c59dc7d3559d062c00704e00431bc4504b67 (patch)
treec3e9f69f4ea8ad7b1b9767c1e4ea438710953135
parent568befb6aa0d057b6291326c62be0de46bd2d5e3 (diff)
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--lib/setup_once.h12
1 files changed, 12 insertions, 0 deletions
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
@@ -317,6 +317,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.
*/