|
|
@@ -24,10 +24,14 @@ typedef double va_double;
|
|
|
** tricky fashions. We don't why Python does this, but since we're
|
|
|
** abusing our va_list objects in a similar fashion, we'll copy them
|
|
|
** too. */
|
|
|
-#if VA_LIST_IS_ARRAY
|
|
|
-#define VA_LIST_COPY(dest,src) memcpy((dest), (src), sizeof(va_list))
|
|
|
+#ifdef HAS_VA_COPY
|
|
|
+# define VA_LIST_COPY(dest,src) va_copy((dest), (src))
|
|
|
#else
|
|
|
-#define VA_LIST_COPY(dest,src) ((dest) = (src))
|
|
|
+# if VA_LIST_IS_ARRAY
|
|
|
+# define VA_LIST_COPY(dest,src) memcpy((dest), (src), sizeof(va_list))
|
|
|
+# else
|
|
|
+# define VA_LIST_COPY(dest,src) ((dest) = (src))
|
|
|
+# endif
|
|
|
#endif
|
|
|
|
|
|
|