OSDN Git Service

Fix from Bernhard for somebody trying to limp along with gcc 2.95.4.
authorRob Landley <rob@landley.net>
Tue, 12 Sep 2006 20:29:22 +0000 (20:29 -0000)
committerRob Landley <rob@landley.net>
Tue, 12 Sep 2006 20:29:22 +0000 (20:29 -0000)
include/platform.h

index fdaf509..fa7749b 100644 (file)
 # endif
 #endif
 
+/* gcc-2.95 had no va_copy but only __va_copy. */
+#if !__GNUC_PREREQ (3,0)
+# include <stdarg.h>
+# if !defined va_copy && defined __va_copy
+#  define va_copy(d,s) __va_copy((d),(s))
+# endif
+#endif
+
 /* ---- Endian Detection ------------------------------------ */
 
 #if (defined __digital__ && defined __unix__)