summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYork Sun <yorksun@freescale.com>2013-04-04 11:52:53 +0000
committerTom Rini <trini@ti.com>2013-04-08 12:00:51 -0400
commita6142706f578e6246bc987ae8ac343f506d3ad35 (patch)
tree3c941d93fd4024af20a9ecc70ec49bb67aa0349a
parent3cb5ca75a1d643666ce829a77abffe6145b4f820 (diff)
downloadu-boot-imx-a6142706f578e6246bc987ae8ac343f506d3ad35.zip
u-boot-imx-a6142706f578e6246bc987ae8ac343f506d3ad35.tar.gz
u-boot-imx-a6142706f578e6246bc987ae8ac343f506d3ad35.tar.bz2
common/cmd_test: Avoid macro expansion
cmd_test.c adds "true" and "false" as new commands. We need to avoid macro expansion for U_BOOT_CMD. Signed-off-by: York Sun <yorksun@freescale.com>
-rw-r--r--common/cmd_test.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/common/cmd_test.c b/common/cmd_test.c
index d4ec186..acc0ecf 100644
--- a/common/cmd_test.c
+++ b/common/cmd_test.c
@@ -21,6 +21,15 @@
* MA 02111-1307 USA
*/
+/*
+ * Define _STDBOOL_H here to avoid macro expansion of true and false.
+ * If the future code requires macro true or false, remove this define
+ * and undef true and false before U_BOOT_CMD. This define and comment
+ * shall be removed if change to U_BOOT_CMD is made to take string
+ * instead of stringifying it.
+ */
+#define _STDBOOL_H
+
#include <common.h>
#include <command.h>