mirror of
https://github.com/danog/ext-uv.git
synced 2024-11-26 20:14:47 +01:00
Fix compile with gcc
This commit is contained in:
parent
ad904731ba
commit
7b345baef0
5
php_uv.c
5
php_uv.c
@ -99,7 +99,12 @@ start:
|
||||
return buf.s;
|
||||
}
|
||||
|
||||
/* gcc complains: sorry, unimplemented: function ‘uv_parse_arg_object’ can never be inlined because it uses variable argument lists */
|
||||
#ifdef __clang__
|
||||
static zend_always_inline int uv_parse_arg_object(zval *arg, zval **dest, int check_null, zend_class_entry *ce, ...) {
|
||||
#else
|
||||
static int uv_parse_arg_object(zval *arg, zval **dest, int check_null, zend_class_entry *ce, ...) {
|
||||
#endif
|
||||
if (EXPECTED(Z_TYPE_P(arg) == IS_OBJECT)) {
|
||||
va_list va;
|
||||
zend_class_entry *argce = Z_OBJCE_P(arg);
|
||||
|
Loading…
Reference in New Issue
Block a user