com php-src: fix inconsistend dll linkage warn: ext/json/json _parser.y

From: Date: Mon, 09 Feb 2015 09:51:29 +0000
Subject: com php-src: fix inconsistend dll linkage warn: ext/json/json _parser.y
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-84746@lists.php.net to get a copy of this message
Commit: 12fff5251bc31284b82c0bb12ae401220aa84ae5 Author: Anatol Belski <ab@php.net> Mon, 9 Feb 2015 10:51:29 +0100 Parents: fc5b349789240268a0eb80612eb61889fd80d818 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=12fff5251bc31284b82c0bb12ae401220aa84ae5 Log: fix inconsistend dll linkage warn Changed paths: M ext/json/json_parser.y Diff: diff --git a/ext/json/json_parser.y b/ext/json/json_parser.y index 75c8ffb..eef2c4a 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)

« previous php.cvs (#84746) next »