From: Anatol Belski Date: Mon, 9 Feb 2015 09:51:29 +0000 (+0100) Subject: fix inconsistend dll linkage warn X-Git-Tag: PRE_PHP7_REMOVALS~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=12fff5251bc31284b82c0bb12ae401220aa84ae5;p=php fix inconsistend dll linkage warn --- 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)