svn commit: trunk/busybox/include
aldot at busybox.net
aldot at busybox.net
Sat Jan 20 13:27:19 PST 2007
Author: aldot
Date: 2007-01-20 13:27:18 -0800 (Sat, 20 Jan 2007)
New Revision: 17413
Log:
- add C99 bool type for setups that support it.
Modified:
trunk/busybox/include/platform.h
Changeset:
Modified: trunk/busybox/include/platform.h
===================================================================
--- trunk/busybox/include/platform.h 2007-01-20 20:54:05 UTC (rev 17412)
+++ trunk/busybox/include/platform.h 2007-01-20 21:27:18 UTC (rev 17413)
@@ -183,6 +183,16 @@
typedef unsigned smalluint;
#endif
+/* ISO C Standard: 7.16 Boolean type and values <stdbool.h> */
+#if (defined __digital__ && defined __unix__)
+/* old system without (proper) C99 support */
+#define bool smalluint
+#else
+/* modern system, so use it */
+#include <stdbool.h>
+#endif
+
+
/* uclibc does not implement daemon() for no-mmu systems.
* For 0.9.29 and svn, __ARCH_USE_MMU__ indicates no-mmu reliably.
* For earlier versions there is no reliable way to check if we are building
More information about the busybox-cvs
mailing list