summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2010-08-04 08:14:33 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2010-08-06 19:12:07 +0200
commit80758d4083772b2d4850fd4e956a5f12c16e2629 (patch)
treed3f9b38c39f8b403e07a522da6ea3e0e9715e369 /include
parent7b2c0d1595ea29119f75768949c824b22f3a4254 (diff)
downloadbarebox-80758d4083772b2d4850fd4e956a5f12c16e2629.tar.gz
barebox-80758d4083772b2d4850fd4e956a5f12c16e2629.tar.xz
stddef: introduce true/false enum
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/stddef.h5
-rw-r--r--include/xyzModem.h3
2 files changed, 5 insertions, 3 deletions
diff --git a/include/linux/stddef.h b/include/linux/stddef.h
index 81e34c260f..e36632872d 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 9723e731cc..a3ea768094 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