summaryrefslogtreecommitdiff
path: root/source/compiler/aslcompiler.y
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2012-03-20 18:17:33 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2012-03-20 18:17:33 +0000
commitb81dc021b3e3311e46f9e81de4f09855536e8147 (patch)
tree3fa3a8ab860459d0b2c9768eed9142052be1ced3 /source/compiler/aslcompiler.y
parent5437485bdb98c4b00f15969e013c454426e9c862 (diff)
Notes
Diffstat (limited to 'source/compiler/aslcompiler.y')
-rw-r--r--source/compiler/aslcompiler.y5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/compiler/aslcompiler.y b/source/compiler/aslcompiler.y
index c2cb0a5dd1ac..a9e58f5cd0d6 100644
--- a/source/compiler/aslcompiler.y
+++ b/source/compiler/aslcompiler.y
@@ -78,6 +78,11 @@ void * AslLocalAllocate (unsigned int Size);
#define YYDEBUG 1 /* Enable debug output */
#define YYERROR_VERBOSE 1 /* Verbose error messages */
+/* Define YYMALLOC/YYFREE to prevent redefinition errors */
+
+#define YYMALLOC malloc
+#define YYFREE free
+
/*
* The windows version of bison defines this incorrectly as "32768" (Not negative).
* We use a custom (edited binary) version of bison that defines YYFLAG as YYFBAD