]> git.sur5r.net Git - cc65/commitdiff
va_copy is only available from C99 and up
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 11 Dec 2004 14:59:05 +0000 (14:59 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 11 Dec 2004 14:59:05 +0000 (14:59 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@3325 b7a2c559-68d2-44c3-8de9-860c34a00d81

include/stdarg.h

index 52ea5b2751218333bfbf0a8584603e8809229355..4fd822b2a3ba43a1d75f58bc03c9f60a01257ac7 100644 (file)
@@ -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)