Mercurial > hg > qcc
changeset 407:8221c0d15dee
Patch from Hasso Tepper <hasso@linux.ee> adding a simple va_copy()
implentation to stdarg.h.
http://bugs.debian.org/283066
author | landley@driftwood |
---|---|
date | Sun, 08 Oct 2006 22:57:59 -0400 |
parents | 204dee5c5152 |
children | 1f7ab2bc1933 |
files | stdarg.h |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/stdarg.h Sun Oct 08 22:54:25 2006 -0400 +++ b/stdarg.h Sun Oct 08 22:57:59 2006 -0400 @@ -6,6 +6,7 @@ /* 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 */