From: George Peter Banyard Date: Tue, 14 Jan 2020 21:56:03 +0000 (+0100) Subject: Remove va_copy from zend_portability as it's always available since C99 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9118a96fb0a9753c67d8308ab0b45be8b0584be4;p=php Remove va_copy from zend_portability as it's always available since C99 --- diff --git a/Zend/zend_portability.h b/Zend/zend_portability.h index 2495273d1d..9bb95f7070 100644 --- a/Zend/zend_portability.h +++ b/Zend/zend_portability.h @@ -481,18 +481,6 @@ extern "C++" { #define ZEND_VALID_SOCKET(sock) ((sock) >= 0) #endif -/* va_copy() is __va_copy() in old gcc versions. - * According to the autoconf manual, using - * memcpy(&dst, &src, sizeof(va_list)) - * gives maximum portability. */ -#ifndef va_copy -# ifdef __va_copy -# define va_copy(dest, src) __va_copy((dest), (src)) -# else -# define va_copy(dest, src) memcpy(&(dest), &(src), sizeof(va_list)) -# endif -#endif - /* Intrinsics macros start. */ /* Memory sanitizer is incompatible with ifunc resolvers. Even if the resolver