From b5f50ea3446980984637ad5fac6bd3890102027b Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Tue, 12 Sep 2006 13:27:55 +0000 Subject: - small trivia to be gentle to gcc-2.95.x which had no va_copy but only __va_copy. --- include/platform.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/platform.h') diff --git a/include/platform.h b/include/platform.h index ca6f3634f..fdaf50920 100644 --- a/include/platform.h +++ b/include/platform.h @@ -75,6 +75,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.2.3