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__ + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ //