From 12fff5251bc31284b82c0bb12ae401220aa84ae5 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Mon, 9 Feb 2015 10:51:29 +0100 Subject: [PATCH] fix inconsistend dll linkage warn --- ext/json/json_parser.y | 5 +++++ 1 file changed, 5 insertions(+) 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) -- 2.50.1