[Pkg-shadow-commits] r2211 - in upstream/trunk: . lib

nekral-guest at alioth.debian.org nekral-guest at alioth.debian.org
Sat Jul 26 16:13:30 UTC 2008


Author: nekral-guest
Date: 2008-07-26 16:13:29 +0000 (Sat, 26 Jul 2008)
New Revision: 2211

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/lib/defines.h
Log:
	* lib/defines.h: Make sure the booleans are defined before using
	them.


Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2008-07-26 16:11:49 UTC (rev 2210)
+++ upstream/trunk/ChangeLog	2008-07-26 16:13:29 UTC (rev 2211)
@@ -1,5 +1,10 @@
 2008-07-26  Nicolas François  <nicolas.francois at centraliens.net>
 
+	* lib/defines.h: Make sure the booleans are defined before using
+	them.
+
+2008-07-26  Nicolas François  <nicolas.francois at centraliens.net>
+
 	* src/groupmems.c: Added Prog global variable to indicate the name
 	of the program in error messages.
 

Modified: upstream/trunk/lib/defines.h
===================================================================
--- upstream/trunk/lib/defines.h	2008-07-26 16:11:49 UTC (rev 2210)
+++ upstream/trunk/lib/defines.h	2008-07-26 16:13:29 UTC (rev 2211)
@@ -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 @@
 # 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_ */




More information about the Pkg-shadow-commits mailing list