Browse Source

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

PECL
Scott MacVicar 18 years ago
parent
commit
49a15f0bd4
  1. 7
      main/php.h
  2. 2
      win32/build/config.w32.h.in

7
main/php.h

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

2
win32/build/config.w32.h.in

@ -159,5 +159,3 @@
# define _USE_32BIT_TIME_T 1
#endif
#define HAVE_STDLIB_H 1
#define va_copy(ap1, ap2) memcpy((&ap1), (&ap2), sizeof(va_list))
Loading…
Cancel
Save