fix "inconsistent dll linkage" warning caused by bison

stdlib.h might not be always using _STDLIB_H, that will move bison
to redeclare the malloc/free prototypes.
This commit is contained in:
Anatol Belski 2014-10-28 19:18:47 +01:00
parent d9d16d2e68
commit cf581178e7
2 changed files with 10 additions and 0 deletions

View File

@ -43,6 +43,11 @@ int ini_parse(void);
#define ZEND_INI_PARSER_CB (CG(ini_parser_param))->ini_parser_cb
#define ZEND_INI_PARSER_ARG (CG(ini_parser_param))->arg
#ifdef _MSC_VER
#define YYMALLOC malloc
#define YYFREE free
#endif
/* {{{ zend_ini_do_op()
*/
static void zend_ini_do_op(char type, zval *result, zval *op1, zval *op2)

View File

@ -43,6 +43,11 @@ static YYSIZE_T zend_yytnamerr(char*, const char*);
#define YYERROR_VERBOSE
#define YYSTYPE zend_parser_stack_elem
#ifdef _MSC_VER
#define YYMALLOC malloc
#define YYFREE free
#endif
%}
%pure_parser