mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
On linux use the va_copy() func for variable arugment copying
This commit is contained in:
parent
63f6536c72
commit
0456158e41
1 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue