Use the C99 standard va_copy if possible for compatibility with the musl C library.
This commit is contained in:
committed by
Jon Trulson
parent
13c173d22c
commit
325132735b
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user