summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg.h
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-12-16 11:45:02 +0100
committerAnatol Belski <ab@php.net>2014-12-16 12:20:57 +0100
commitf1d1185c64e73ae19d7339cfe5e0e0f92da0e4f0 (patch)
tree0b385d96b2a1525d82b70a9a42153b860346960e /sapi/phpdbg/phpdbg.h
parent53c8b180c8efaab3edf7a02d39ca4e9628e1f67b (diff)
downloadphp-git-f1d1185c64e73ae19d7339cfe5e0e0f92da0e4f0.tar.gz
fixed macro va args expansion for vs
Diffstat (limited to 'sapi/phpdbg/phpdbg.h')
-rw-r--r--sapi/phpdbg/phpdbg.h5
1 files changed, 5 insertions, 0 deletions
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 <readline/readline.h>