mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
Use the C99 standard va_copy if possible for compatibility with the musl C library.
This commit is contained in:
parent
13c173d22c
commit
325132735b
1 changed files with 3 additions and 3 deletions
|
@ -350,10 +350,10 @@ write_func_def_params(
|
||||||
va_list va_params
|
va_list va_params
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if defined(__ppc) || defined(__linux__)
|
#if defined(va_copy) || defined(CSRG_BASED)
|
||||||
#define va_start_params() __va_copy(params, va_params)
|
|
||||||
#elif defined(CSRG_BASED)
|
|
||||||
#define va_start_params() va_copy(params, va_params)
|
#define va_start_params() va_copy(params, va_params)
|
||||||
|
#elif defined(__ppc) || defined(__linux__)
|
||||||
|
#define va_start_params() __va_copy(params, va_params)
|
||||||
#else
|
#else
|
||||||
#define va_start_params() (params = va_params)
|
#define va_start_params() (params = va_params)
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue