fix(build): build fix for msvc

This commit is contained in:
Adam Heinermann 2024-11-14 21:59:05 -08:00 committed by superp00t
parent 6e1c9d9e93
commit c42bad55a2
3 changed files with 11 additions and 2 deletions

View file

@ -1,7 +1,11 @@
#include "storm/thread/S_Thread.hpp"
#include "storm/Memory.hpp"
DWORD S_Thread::s_SLaunchThread(void* threadParam) {
#ifndef WINAPI
#define WINAPI
#endif
DWORD WINAPI S_Thread::s_SLaunchThread(void* threadParam) {
auto params = static_cast<SThreadParmBlock*>(threadParam);
auto proc = params->threadProc;
auto param = params->threadParam;