mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 02:22:30 +00:00
fix(build): build fix for msvc
This commit is contained in:
parent
6e1c9d9e93
commit
c42bad55a2
3 changed files with 11 additions and 2 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
|
@ -1,6 +1,11 @@
|
||||||
.DS_Store
|
.DS_Store
|
||||||
.idea
|
.idea
|
||||||
.vscode
|
.vscode
|
||||||
|
CMakeSettings.json
|
||||||
|
|
||||||
/build
|
/build
|
||||||
/dist
|
/dist
|
||||||
|
/out
|
||||||
|
/.vs
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ class S_Thread {
|
||||||
|
|
||||||
// Static functions
|
// Static functions
|
||||||
#if defined(WHOA_SYSTEM_WIN)
|
#if defined(WHOA_SYSTEM_WIN)
|
||||||
static DWORD s_SLaunchThread(void* threadParam);
|
static DWORD WINAPI s_SLaunchThread(void* threadParam);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(WHOA_SYSTEM_MAC)
|
#if defined(WHOA_SYSTEM_MAC)
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,11 @@
|
||||||
#include "storm/thread/S_Thread.hpp"
|
#include "storm/thread/S_Thread.hpp"
|
||||||
#include "storm/Memory.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 params = static_cast<SThreadParmBlock*>(threadParam);
|
||||||
auto proc = params->threadProc;
|
auto proc = params->threadProc;
|
||||||
auto param = params->threadParam;
|
auto param = params->threadParam;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue