From: Stan Shebs Date: Mon, 22 Jan 2018 20:30:55 +0000 (-0800) Subject: Add clang placeholders for va_arg_pack X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4206f5d0893257cff11723482a38ef244a01fa39;p=thirdparty%2Fglibc.git Add clang placeholders for va_arg_pack --- diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h index af103fdb8aa..61deb03df14 100644 --- a/misc/sys/cdefs.h +++ b/misc/sys/cdefs.h @@ -354,9 +354,14 @@ /* GCC 4.3 and above allow passing all anonymous arguments of an __extern_always_inline function to some other vararg function. */ #if __GNUC_PREREQ (4,3) +#if defined(__clang__) +# define __va_arg_pack() __VA_ARGS__ +# define __va_arg_pack_len() 0 +#else # define __va_arg_pack() __builtin_va_arg_pack () # define __va_arg_pack_len() __builtin_va_arg_pack_len () #endif +#endif /* It is possible to compile containing GCC extensions even if GCC is run in pedantic mode if the uses are carefully marked using the