]> granicus.if.org Git - php/commitdiff
fix inconsistend dll linkage warn
authorAnatol Belski <ab@php.net>
Mon, 9 Feb 2015 09:51:29 +0000 (10:51 +0100)
committerAnatol Belski <ab@php.net>
Mon, 9 Feb 2015 09:51:29 +0000 (10:51 +0100)
ext/json/json_parser.y

index 75c8ffb4a8cb6f296e3176d40a4c6a4e8b8b9b4d..eef2c4a98cbb150963c4cee10f025c757a0bf825 100644 (file)
 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)