diff options
author | Benjamin Peterson <benjamin@python.org> | 2016-09-21 03:39:33 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2016-09-21 03:39:33 (GMT) |
commit | 0c21214f3e583d541227df2239de377e796b55fa (patch) | |
tree | 154bfb91be848e117f6721523750bdc4afff8b71 /Include/pyport.h | |
parent | ec2319c46d11e8f486e7def785339af5415a3559 (diff) | |
download | cpython-0c21214f3e583d541227df2239de377e796b55fa.zip cpython-0c21214f3e583d541227df2239de377e796b55fa.tar.gz cpython-0c21214f3e583d541227df2239de377e796b55fa.tar.bz2 |
replace usage of Py_VA_COPY with the (C99) standard va_copy
Diffstat (limited to 'Include/pyport.h')
-rw-r--r-- | Include/pyport.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/Include/pyport.h b/Include/pyport.h index ec3c4df..20f3db7 100644 --- a/Include/pyport.h +++ b/Include/pyport.h @@ -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 |