mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
MFH Better fix for va_copy since some architectures like to do a deep copy.
This commit is contained in:
parent
a9879d34a8
commit
49a15f0bd4
2 changed files with 7 additions and 2 deletions
|
@ -173,6 +173,13 @@ typedef unsigned int socklen_t;
|
|||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef va_copy
|
||||
# ifdef __va_copy
|
||||
# define va_copy(ap1, ap2) __va_copy((ap1), (ap2))
|
||||
# else
|
||||
# define va_copy(ap1, ap2) memcpy((&ap1), (&ap2), sizeof(va_list))
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#include "zend_hash.h"
|
||||
#include "php3_compat.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue