Skip to content

Commit a05c16d

Browse files
Workaround compiler crash
1 parent 4cd3067 commit a05c16d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

waterbox/melon/BizPlatform/BizOGL.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ class GLFunctor<Result (Args...)>
4646
{
4747
if (IsWinAPI)
4848
{
49-
using WinAPIGLFunc = __attribute__((ms_abi)) GLFunc;
49+
// doing __attribute__((ms_abi)) GLFunc; instead will crash clang on compilation
50+
// https://github.com/llvm/llvm-project/issues/148325
51+
using WinAPIGLFunc = __attribute__((ms_abi)) Result (*)(Args...);
5052
return reinterpret_cast<WinAPIGLFunc>(glProc)(std::forward<Args>(args)...);
5153
}
5254

0 commit comments

Comments
 (0)