summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMasamitsu MURASE <[email protected]>2012-05-27 23:05:43 +0900
committerMasamitsu MURASE <[email protected]>2012-05-27 23:05:43 +0900
commit2f4ef95ae65490d180571b8563374c052cd2afd7 (patch)
tree3e5b43f3a5d0838801920811690c26a297f31d41
parent2a3e74b4fd2b9841dec5c082c3e8ecb9ad676821 (diff)
downloadmruby-2f4ef95ae65490d180571b8563374c052cd2afd7.tar.gz
mruby-2f4ef95ae65490d180571b8563374c052cd2afd7.zip
Add 'ifndef/endif' to avoid conflict of 'TRUE' definition.
-rw-r--r--src/parse.y5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/parse.y b/src/parse.y
index 5924cd43c..887ba0134 100644
--- a/src/parse.y
+++ b/src/parse.y
@@ -41,8 +41,13 @@ static void backref_error(parser_state *p, node *n);
#define identchar(c) (isalnum(c) || (c) == '_' || !isascii(c))
+#ifndef TRUE
#define TRUE 1
+#endif
+
+#ifndef FALSE
#define FALSE 0
+#endif
typedef unsigned int stack_type;