summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2015-02-09 10:51:29 +0100
committerAnatol Belski <ab@php.net>2015-02-09 10:51:29 +0100
commit12fff5251bc31284b82c0bb12ae401220aa84ae5 (patch)
tree673de4087d8f25e929c9ab8d0986d7a4bad50dcb
parentfc5b349789240268a0eb80612eb61889fd80d818 (diff)
downloadphp-git-12fff5251bc31284b82c0bb12ae401220aa84ae5.tar.gz
fix inconsistend dll linkage warn
-rw-r--r--ext/json/json_parser.y5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/json/json_parser.y b/ext/json/json_parser.y
index 75c8ffb4a8..eef2c4a98c 100644
--- a/ext/json/json_parser.y
+++ b/ext/json/json_parser.y
@@ -27,6 +27,11 @@
int json_yydebug = 1;
#endif
+#ifdef _MSC_VER
+#define YYMALLOC malloc
+#define YYFREE free
+#endif
+
#define PHP_JSON_USE(uv) ((void) (uv))
#define PHP_JSON_USE_1(uvr, uv1) PHP_JSON_USE(uvr); PHP_JSON_USE(uv1)
#define PHP_JSON_USE_2(uvr, uv1, uv2) PHP_JSON_USE(uvr); PHP_JSON_USE(uv1); PHP_JSON_USE(uv2)