From: Peter Howkins Date: Mon, 12 Mar 2012 16:24:24 +0000 (+0000) Subject: On linux use the va_copy() func for variable arugment copying X-Git-Tag: 2.2.0a~26^2~81 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0456158e4145ae40c3162179beec986cb08665a9;p=oweals%2Fcde.git On linux use the va_copy() func for variable arugment copying --- 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;