mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +08:00
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:
parent
d9d16d2e68
commit
cf581178e7
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user