]> andersk Git - nss_nonlocal.git/commitdiff
Define bool
authorAnders Kaseorg <andersk@mit.edu>
Mon, 23 Aug 2010 01:56:01 +0000 (21:56 -0400)
committerAnders Kaseorg <andersk@mit.edu>
Wed, 30 Mar 2011 08:56:26 +0000 (04:56 -0400)
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
configure.ac
nonlocal.h

index fbf32479356ad5b327daa4959291db14d0f01dfc..92213406d7ced776a16f7c0fb7f499cf3464245f 100644 (file)
@@ -9,6 +9,8 @@ AC_PROG_CC
 AC_PROG_INSTALL
 AC_PROG_LIBTOOL
 
+AC_HEADER_STDBOOL
+
 case "$target_cpu" in
     i386 | i486 | i586 | i686 | i786)
        AC_DEFINE([USE_REGPARMS], [],
index a0746d4c7eb96f25245adc51d667d6b51d708e08..b31a9a93ef09b50de38372dca7639e66c8e5372d 100644 (file)
 #define NONLOCAL_H
 
 #include "config.h"
+
+#ifdef HAVE_STDBOOL_H
+# include <stdbool.h>
+#else
+# ifndef HAVE__BOOL
+#  ifdef __cplusplus
+typedef bool _Bool;
+#  else
+#   define _Bool signed char
+#  endif
+# endif
+# define bool _Bool
+# define false 0
+# define true 1
+# define __bool_true_false_are_defined 1
+#endif
+
 #include "nsswitch-internal.h"
 
 struct walk_nss {
This page took 0.104053 seconds and 5 git commands to generate.