projects
/
platform
/
upstream
/
c-ares.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98b5296
)
setup_once.h: HP-UX specific TRUE and FALSE definitions
author
Yang Tse
<yangsita@gmail.com>
Wed, 12 Dec 2012 15:39:07 +0000
(16:39 +0100)
committer
Yang Tse
<yangsita@gmail.com>
Wed, 12 Dec 2012 15:39:07 +0000
(16:39 +0100)
Some HP-UX system headers require TRUE defined to 1 and FALSE to 0.
setup_once.h
patch
|
blob
|
history
diff --git
a/setup_once.h
b/setup_once.h
index
fc630ef
..
bb261e7
100644
(file)
--- 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.
*/