]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Add clang placeholders for va_arg_pack
authorStan Shebs <stanshebs@google.com>
Mon, 22 Jan 2018 20:30:55 +0000 (12:30 -0800)
committerStan Shebs <stanshebs@google.com>
Thu, 25 Jan 2018 00:03:39 +0000 (16:03 -0800)
misc/sys/cdefs.h

index af103fdb8aaa5c53c3f8ac424cb453642f2a2ffc..61deb03df14118fb9cf395b7f884b90d33a0299e 100644 (file)
 /* 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