1
0
Fork 0
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:
Lev Kujawski 2021-01-06 12:18:18 -07:00 committed by Jon Trulson
parent 13c173d22c
commit 325132735b

View file

@ -350,10 +350,10 @@ write_func_def_params(
va_list va_params
)
{
#if defined(__ppc) || defined(__linux__)
#define va_start_params() __va_copy(params, va_params)
#elif defined(CSRG_BASED)
#if defined(va_copy) || defined(CSRG_BASED)
#define va_start_params() va_copy(params, va_params)
#elif defined(__ppc) || defined(__linux__)
#define va_start_params() __va_copy(params, va_params)
#else
#define va_start_params() (params = va_params)
#endif