[PATCH] add bool types support

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Fri Oct 30 17:55:06 EDT 2009


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

diff --git a/include/linux/types.h b/include/linux/types.h
index 8646e03..2241364 100644
--- a/include/linux/types.h
+++ b/include/linux/types.h
@@ -16,6 +16,7 @@ typedef __kernel_pid_t		pid_t;
 typedef __kernel_daddr_t	daddr_t;
 typedef __kernel_key_t		key_t;
 typedef __kernel_suseconds_t	suseconds_t;
+typedef _Bool			bool;
 
 #ifdef __KERNEL__
 typedef __kernel_uid32_t	uid_t;
diff --git a/include/xyzModem.h b/include/xyzModem.h
index f437bbd..9723e73 100644
--- a/include/xyzModem.h
+++ b/include/xyzModem.h
@@ -97,11 +97,6 @@ typedef struct {
 #endif
 } connection_info_t;
 
-#ifndef	BOOL_WAS_DEFINED
-#define BOOL_WAS_DEFINED
-typedef unsigned int bool;
-#endif
-
 #define false 0
 #define true 1
 
-- 
1.6.5





More information about the u-boot-v2 mailing list