From e27e4f8d51dc1e04985868152150ba348d2cf5f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Mon, 15 Oct 2007 23:08:08 +0000 Subject: [PATCH] only define va_copy for gcc2.95 git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22581 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/bin/coreutils/lib/config.h | 2 ++ src/bin/m4/lib/config.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/bin/coreutils/lib/config.h b/src/bin/coreutils/lib/config.h index bf30788547..f3312817b5 100644 --- a/src/bin/coreutils/lib/config.h +++ b/src/bin/coreutils/lib/config.h @@ -1904,7 +1904,9 @@ /* #undef utime */ /* Define as a macro for copying va_list variables. */ +#if __GNUC__ < 3 #define va_copy __va_copy +#endif /* Define to empty if the keyword `volatile' does not work. Warning: valid code using `volatile' can become incorrect without. Disable with care. */ diff --git a/src/bin/m4/lib/config.h b/src/bin/m4/lib/config.h index 431ef71f98..08b4ce4d1f 100644 --- a/src/bin/m4/lib/config.h +++ b/src/bin/m4/lib/config.h @@ -604,4 +604,6 @@ /* #undef stack_t */ /* Define as a macro for copying va_list variables. */ +#if __GNUC__ < 3 #define va_copy gl_va_copy +#endif