aboutsummaryrefslogtreecommitdiffstats
path: root/ldns/common.h.in
diff options
context:
space:
mode:
Diffstat (limited to 'ldns/common.h.in')
-rw-r--r--ldns/common.h.in24
1 files changed, 13 insertions, 11 deletions
diff --git a/ldns/common.h.in b/ldns/common.h.in
index 8bf9654b4ff5..805eb8bf42c7 100644
--- a/ldns/common.h.in
+++ b/ldns/common.h.in
@@ -37,20 +37,22 @@
*/
/*@ignore@*/
/* splint barfs on this construct */
-#ifdef HAVE_STDBOOL_H
-# include <stdbool.h>
-#else
-# ifndef HAVE__BOOL
-# ifdef __cplusplus
+#ifndef __bool_true_false_are_defined
+# ifdef HAVE_STDBOOL_H
+# include <stdbool.h>
+# else
+# ifndef HAVE__BOOL
+# ifdef __cplusplus
typedef bool _Bool;
-# else
-# define _Bool signed char
+# else
+# define _Bool signed char
+# endif
# endif
+# define bool _Bool
+# define false 0
+# define true 1
+# define __bool_true_false_are_defined 1
# endif
-# define bool _Bool
-# define false 0
-# define true 1
-# define __bool_true_false_are_defined 1
#endif
/*@end@*/