https://git.reactos.org/?p=reactos.git;a=commitdiff;h=1f0bbb3050378b1de5674…
commit 1f0bbb3050378b1de5674caf2282376b5f5d6f82
Author: Thomas Faber <thomas.faber(a)reactos.org>
AuthorDate: Sun Aug 30 01:24:03 2020 +0200
Commit: Thomas Faber <thomas.faber(a)reactos.org>
CommitDate: Sun Aug 30 09:09:04 2020 +0200
[CRT] Use builtin va_args macros for clang. CORE-17227
---
sdk/include/crt/vadefs.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sdk/include/crt/vadefs.h b/sdk/include/crt/vadefs.h
index 057daee0490..b714f59ab7b 100644
--- a/sdk/include/crt/vadefs.h
+++ b/sdk/include/crt/vadefs.h
@@ -39,7 +39,7 @@ extern "C" {
#define _INTSIZEOF(n) ((sizeof(n) + sizeof(int) - 1) & ~(sizeof(int) - 1))
-#if defined(__GNUC__)
+#if defined(__GNUC__) || defined(__clang__)
#define _crt_va_start(v,l) __builtin_va_start(v,l)
#define _crt_va_arg(v,l) __builtin_va_arg(v,l)
#define _crt_va_end(v) __builtin_va_end(v)