From 1b2b5cfba81aab3e56d374ee3dcee97cde4bcb4e Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 12 Sep 2006 20:29:22 +0000 Subject: Fix from Bernhard for somebody trying to limp along with gcc 2.95.4. --- include/platform.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/platform.h b/include/platform.h index fdaf509..fa7749b 100644 --- a/include/platform.h +++ b/include/platform.h @@ -83,6 +83,14 @@ # endif #endif +/* gcc-2.95 had no va_copy but only __va_copy. */ +#if !__GNUC_PREREQ (3,0) +# include +# 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__) -- cgit v1.1