]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
common/cmd_test: Avoid macro expansion
authorYork Sun <yorksun@freescale.com>
Thu, 4 Apr 2013 11:52:53 +0000 (11:52 +0000)
committerTom Rini <trini@ti.com>
Mon, 8 Apr 2013 16:00:51 +0000 (12:00 -0400)
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>
common/cmd_test.c

index d4ec18672e4f10d396625aff18442bf247a210fd..acc0ecf99b760c0de60b98145f41a0d4b4a066a0 100644 (file)
  * 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>