[PATCH] stddef: introduce true/false enum

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Wed Aug 4 02:14:33 EDT 2010


Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
---
 include/linux/stddef.h |    5 +++++
 include/xyzModem.h     |    3 ---
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/include/linux/stddef.h b/include/linux/stddef.h
index 81e34c2..e366328 100644
--- a/include/linux/stddef.h
+++ b/include/linux/stddef.h
@@ -8,6 +8,11 @@
 #define NULL ((void *)0)
 #endif
 
+enum {
+	false	= 0,
+	true	= 1
+};
+
 #ifndef _SIZE_T
 #include <linux/types.h>
 #endif
diff --git a/include/xyzModem.h b/include/xyzModem.h
index 9723e73..a3ea768 100644
--- a/include/xyzModem.h
+++ b/include/xyzModem.h
@@ -97,9 +97,6 @@ typedef struct {
 #endif
 } connection_info_t;
 
-#define false 0
-#define true 1
-
 #endif
 
 
-- 
1.7.1




More information about the barebox mailing list