Skip to content

Commit ef440b9

Browse files
committed
[UCRT] Add a hack for a clang bug
See CORE-19902
1 parent 42e9c80 commit ef440b9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

sdk/lib/ucrt/inc/corecrt_internal_traits.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@ errno_t __cdecl _wsopen_nolock(
5353
} // extern "C"
5454
#endif // __GNUC__
5555

56+
#ifdef __clang__
57+
// Hack for broken Clang, which crashes, when using __cdecl on a static template function.
58+
// See CORE-19902
59+
#undef __cdecl
60+
#define __cdecl
61+
#endif // __clang__
62+
5663

5764
//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
5865
//

0 commit comments

Comments
 (0)