[Pkg-shadow-commits] r2016 - in upstream/trunk: . lib
nekral-guest at alioth.debian.org
nekral-guest at alioth.debian.org
Sun May 25 20:37:55 UTC 2008
Author: nekral-guest
Date: 2008-05-25 20:37:51 +0000 (Sun, 25 May 2008)
New Revision: 2016
Modified:
upstream/trunk/ChangeLog
upstream/trunk/lib/defines.h
Log:
Allow usage of booleans in the source.
Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog 2008-05-25 20:30:45 UTC (rev 2015)
+++ upstream/trunk/ChangeLog 2008-05-25 20:37:51 UTC (rev 2016)
@@ -1,5 +1,10 @@
2008-05-25 Nicolas François <nicolas.francois at centraliens.net>
+ * configure.in, lib/defines.h: Allow usage of booleans in the
+ source.
+
+2008-05-25 Nicolas François <nicolas.francois at centraliens.net>
+
* configure.in: Allow --disable-man and --enable-man=no.
2008-05-25 Nicolas François <nicolas.francois at centraliens.net>
Modified: upstream/trunk/lib/defines.h
===================================================================
--- upstream/trunk/lib/defines.h 2008-05-25 20:30:45 UTC (rev 2015)
+++ upstream/trunk/lib/defines.h 2008-05-25 20:37:51 UTC (rev 2016)
@@ -321,4 +321,20 @@
# 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