Patch #554716: Use __va_copy where available.

This commit is contained in:
Martin v. Löwis 2002-07-28 10:23:27 +00:00
parent 09c35f78fe
commit 75d2d94e0f
4 changed files with 16 additions and 0 deletions

View file

@ -1792,8 +1792,12 @@ objargs_mktuple(va_list va)
#ifdef VA_LIST_IS_ARRAY
memcpy(countva, va, sizeof(va_list));
#else
#ifdef __va_copy
__va_copy(countva, va);
#else
countva = va;
#endif
#endif
while (((PyObject *)va_arg(countva, PyObject *)) != NULL)