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 fdaf5092065296c7b4122fbdc1198d37116781ae..fa7749b3916311ee42661d6cd23f4d4019d0dcce 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__)