https://git.reactos.org/?p=reactos.git;a=commitdiff;h=ef440b9aefcab33fab87c…
commit ef440b9aefcab33fab87c9260b13a20125f34465
Author: Timo Kreuzer <timo.kreuzer(a)reactos.org>
AuthorDate: Thu Nov 28 15:14:28 2024 +0200
Commit: Timo Kreuzer <timo.kreuzer(a)reactos.org>
CommitDate: Thu Jan 16 14:18:53 2025 +0200
[UCRT] Add a hack for a clang bug
See CORE-19902
---
sdk/lib/ucrt/inc/corecrt_internal_traits.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/sdk/lib/ucrt/inc/corecrt_internal_traits.h
b/sdk/lib/ucrt/inc/corecrt_internal_traits.h
index 71f38ab32e7..ff3fd61d388 100644
--- a/sdk/lib/ucrt/inc/corecrt_internal_traits.h
+++ b/sdk/lib/ucrt/inc/corecrt_internal_traits.h
@@ -53,6 +53,13 @@ errno_t __cdecl _wsopen_nolock(
} // extern "C"
#endif // __GNUC__
+#ifdef __clang__
+// Hack for broken Clang, which crashes, when using __cdecl on a static template
function.
+// See CORE-19902
+#undef __cdecl
+#define __cdecl
+#endif // __clang__
+
//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
//