From 3f30c3a0ee7edd1d8d1ff753b38f4ed6da88f560 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Thu, 11 Dec 2008 14:10:56 +0000 Subject: [PATCH] add va_copy() --- include/stdarg.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/stdarg.h b/include/stdarg.h index 2dcc74517..c5ea6b9f4 100755 --- a/include/stdarg.h +++ b/include/stdarg.h @@ -80,6 +80,7 @@ typedef char *va_list; #define va_arg(ap, type) \ (*((type *)((va_list)((ap) = (void *)((va_list)(ap) + __vasz(type))) \ - __vasz(type)))) +#define va_copy(ap2, ap) (ap2) = (ap) #define va_end(ap) #endif /* __GNUC__ */