From 0456158e4145ae40c3162179beec986cb08665a9 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Mon, 12 Mar 2012 16:24:24 +0000 Subject: [PATCH] On linux use the va_copy() func for variable arugment copying --- cde/programs/dtappbuilder/src/abmf/write_c.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cde/programs/dtappbuilder/src/abmf/write_c.c b/cde/programs/dtappbuilder/src/abmf/write_c.c index 5e724568..6b49fa49 100644 --- a/cde/programs/dtappbuilder/src/abmf/write_c.c +++ b/cde/programs/dtappbuilder/src/abmf/write_c.c @@ -351,9 +351,13 @@ write_func_def_params( ) { #ifdef __ppc -#define va_start_params() __va_copy(params, va_params) +# define va_start_params() __va_copy(params, va_params) #else -#define va_start_params() (params = va_params) +# if defined(linux) +# define va_start_params() va_copy(params, va_params) +# else +# define va_start_params() (params = va_params) +# endif #endif #define va_end_params() (0) va_list params; -- 2.25.1