From 49fd6956726774061b1b8f0b86cf9d84f76dc003 Mon Sep 17 00:00:00 2001 From: Bob Weinand Date: Sat, 13 May 2017 23:23:59 +0200 Subject: [PATCH] Fix #42 - Windows build error (again) --- php_uv.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/php_uv.c b/php_uv.c index 96fbe14..18eddb7 100644 --- a/php_uv.c +++ b/php_uv.c @@ -52,13 +52,14 @@ ZEND_DECLARE_MODULE_GLOBALS(uv); #define uv_zend_wrong_parameter_class_error(...) zend_wrong_parameter_class_error(__VA_ARGS__) #endif +#define WITH_STARTING_COMMA(...) , ##__VA_ARGS__ #define UV_PARAM_OBJ_EX(dest, type, check_null, ce, ...) \ { \ zval *zv; \ Z_PARAM_PROLOGUE(0) \ - if (UNEXPECTED(!uv_parse_arg_object(_arg, &zv, check_null, ce, ##__VA_ARGS__, NULL))) { \ + if (UNEXPECTED(!uv_parse_arg_object(_arg, &zv, check_null, ce WITH_STARTING_COMMA(__VA_ARGS__), NULL))) { \ if (!(_flags & ZEND_PARSE_PARAMS_QUIET)) { \ - zend_string *names = php_uv_concat_ce_names(ce, ##__VA_ARGS__, NULL); \ + zend_string *names = php_uv_concat_ce_names(ce WITH_STARTING_COMMA(__VA_ARGS__), NULL); \ uv_zend_wrong_parameter_class_error(_flags & ZEND_PARSE_PARAMS_THROW, _i, ZSTR_VAL(names), _arg); \ zend_string_release(names); \ } \