diff --git a/src/base/kernel/Platform_win.cpp b/src/base/kernel/Platform_win.cpp index 018dba31f..004974535 100644 --- a/src/base/kernel/Platform_win.cpp +++ b/src/base/kernel/Platform_win.cpp @@ -34,7 +34,7 @@ static inline OSVERSIONINFOEX winOsVersion() { - using RtlGetVersionFunction = NTSTATUS (*)(LPOSVERSIONINFO); + typedef NTSTATUS (NTAPI *RtlGetVersionFunction)(LPOSVERSIONINFO); OSVERSIONINFOEX result = { sizeof(OSVERSIONINFOEX), 0, 0, 0, 0, {'\0'}, 0, 0, 0, 0, 0}; HMODULE ntdll = GetModuleHandleW(L"ntdll.dll");