From 5ecda9d204a9a077262a7ce8a414e4772eda08d7 Mon Sep 17 00:00:00 2001 From: cuz Date: Sat, 11 Dec 2004 14:59:05 +0000 Subject: [PATCH] va_copy is only available from C99 and up git-svn-id: svn://svn.cc65.org/cc65/trunk@3325 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- include/stdarg.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/stdarg.h b/include/stdarg.h index 52ea5b275..4fd822b2a 100644 --- a/include/stdarg.h +++ b/include/stdarg.h @@ -6,7 +6,7 @@ /* */ /* */ /* */ -/* (C) 1998-2003 Ullrich von Bassewitz */ +/* (C) 1998-2004 Ullrich von Bassewitz */ /* Römerstrasse 52 */ /* D-70794 Filderstadt */ /* EMail: uz@cc65.org */ @@ -42,7 +42,9 @@ typedef unsigned char* va_list; #define va_start(ap, fix) ap = ((va_list)&(fix)) #define va_arg(ap,type) (*(type*)(ap -= ((sizeof (type) + 1) & ~1))) +#if __CC65_STD__ >= __CC65_STD_C99__ #define va_copy(dest, src) ((dest)=(src)) +#endif #define va_end(ap) -- 2.39.5