MFH Better fix for va_copy since some architectures like to do a deep copy.

This commit is contained in:
Scott MacVicar 2008-11-22 15:16:47 +00:00
parent a9879d34a8
commit 49a15f0bd4
2 changed files with 7 additions and 2 deletions

View file

@ -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"