aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbellard <bellard>2006-10-28 19:45:50 +0000
committerbellard <bellard>2006-10-28 19:45:50 +0000
commit84f4e9963569f930feaa536d03f98c448cb1d75c (patch)
tree9ceb77e7905379fb718924b700a0a846dab91701
parent8b0c4c6582de5a6f5960d48293e2572baf1853da (diff)
downloadtinycc-84f4e9963569f930feaa536d03f98c448cb1d75c.tar.gz
tinycc-84f4e9963569f930feaa536d03f98c448cb1d75c.tar.bz2
added va_copy()
-rw-r--r--stdarg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/stdarg.h b/stdarg.h
index d562d6d..a9b22b7 100644
--- a/stdarg.h
+++ b/stdarg.h
@@ -6,6 +6,7 @@ typedef char *va_list;
/* only correct for i386 */
#define va_start(ap,last) ap = ((char *)&(last)) + ((sizeof(last)+3)&~3)
#define va_arg(ap,type) (ap += (sizeof(type)+3)&~3, *(type *)(ap - ((sizeof(type)+3)&~3)))
+#define va_copy(dest, src) (dest) = (src)
#define va_end(ap)
/* fix a buggy dependency on GCC in libio.h */