]> granicus.if.org Git - shadow/commitdiff
* lib/defines.h: Make sure the booleans are defined before using
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 26 Jul 2008 16:13:29 +0000 (16:13 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 26 Jul 2008 16:13:29 +0000 (16:13 +0000)
them.

ChangeLog
lib/defines.h

index c9c45c88dcafb151a7115beaea49620f73134b21..f69f0373fff9cc1553cae5e0ae223cbca8541993 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-07-26  Nicolas François  <nicolas.francois@centraliens.net>
+
+       * lib/defines.h: Make sure the booleans are defined before using
+       them.
+
 2008-07-26  Nicolas François  <nicolas.francois@centraliens.net>
 
        * src/groupmems.c: Added Prog global variable to indicate the name
index 4d536fbefcd4402a85a7a6bd0a7cc6caddc7b0e8..8381d82c6d0654b8dd572cd17bf66bf77791507c 100644 (file)
@@ -6,6 +6,22 @@
 
 #include <config.h>
 
+#if HAVE_STDBOOL_H
+# include <stdbool.h>
+#else
+# if ! HAVE__BOOL
+#  ifdef __cplusplus
+typedef bool _Bool;
+#  else
+typedef unsigned char _Bool;
+#  endif
+# endif
+# define bool _Bool
+# define false (0)
+# define true  (1)
+# define __bool_true_false_are_defined 1
+#endif
+
 #define ISDIGIT_LOCALE(c) (IN_CTYPE_DOMAIN (c) && isdigit (c))
 
 /* Take care of NLS matters.  */
@@ -334,20 +350,4 @@ extern char *strerror ();
 # define unused
 #endif
 
-#if HAVE_STDBOOL_H
-# include <stdbool.h>
-#else
-# if ! HAVE__BOOL
-#  ifdef __cplusplus
-typedef bool _Bool;
-#  else
-typedef unsigned char _Bool;
-#  endif
-# endif
-# define bool _Bool
-# define false (0)
-# define true  (1)
-# define __bool_true_false_are_defined 1
-#endif
-
 #endif                         /* _DEFINES_H_ */