From f1d1185c64e73ae19d7339cfe5e0e0f92da0e4f0 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Tue, 16 Dec 2014 11:45:02 +0100 Subject: fixed macro va args expansion for vs --- sapi/phpdbg/phpdbg.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sapi/phpdbg/phpdbg.h') diff --git a/sapi/phpdbg/phpdbg.h b/sapi/phpdbg/phpdbg.h index 60d1239a27..a6d4935d45 100644 --- a/sapi/phpdbg/phpdbg.h +++ b/sapi/phpdbg/phpdbg.h @@ -71,9 +71,14 @@ #endif #undef zend_hash_str_add +#ifdef PHP_WIN32 +#define zend_hash_str_add(...) \ + _zend_hash_str_add(__VA_ARGS__ ZEND_FILE_LINE_CC) +#else #define zend_hash_str_add_tmp(ht, key, len, pData) \ _zend_hash_str_add(ht, key, len, pData ZEND_FILE_LINE_CC) #define zend_hash_str_add(...) zend_hash_str_add_tmp(__VA_ARGS__) +#endif #ifdef HAVE_LIBREADLINE # include -- cgit v1.2.1