replace usage of Py_VA_COPY with the (C99) standard va_copy

This commit is contained in:
Benjamin Peterson 2016-09-20 20:39:33 -07:00
parent ec2319c46d
commit 0c21214f3e
8 changed files with 11 additions and 71 deletions

View file

@ -723,15 +723,7 @@ extern pid_t forkpty(int *, char *, struct termios *, struct winsize *);
#define Py_ULL(x) Py_LL(x##U)
#endif
#ifdef VA_LIST_IS_ARRAY
#define Py_VA_COPY(x, y) memcpy((x), (y), sizeof(va_list))
#else
#ifdef __va_copy
#define Py_VA_COPY __va_copy
#else
#define Py_VA_COPY(x, y) (x) = (y)
#endif
#endif
#define Py_VA_COPY va_copy
/*
* Convenient macros to deal with endianness of the platform. WORDS_BIGENDIAN is