Skip to content

Commit 16cd6a0

Browse files
committed
msys2 mingw64 fixes
1 parent 927e248 commit 16cd6a0

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

RSDKv5/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ INT WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR lpCmdLine,
1818
RSDK::RenderDevice::hPrevInstance = hPrevInstance;
1919
RSDK::RenderDevice::nShowCmd = nShowCmd;
2020

21-
return RSDK_main(1, &lpCmdLine, LinkGameLogic);
21+
return RSDK_main(1, &lpCmdLine, (void*)LinkGameLogic);
2222
}
2323
#else
2424
INT WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR lpCmdLine, INT nShowCmd)
2525
{
26-
return RSDK_main(1, &lpCmdLine, LinkGameLogic);
26+
return RSDK_main(1, &lpCmdLine, (void*)LinkGameLogic);
2727
}
2828
#endif
2929

platforms/Windows.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ if(USE_MINIAUDIO)
110110
message(FATAL_ERROR "portaudio not supported for DX9 and DX11.")
111111
endif()
112112
target_compile_definitions(RetroEngine PRIVATE RETRO_AUDIODEVICE_MINI=1)
113+
elseif(MINGW AND WIN32)
114+
target_link_libraries(RetroEngine ksuser xaudio2_8)
113115
endif()
114116

115117
target_compile_definitions(RetroEngine PRIVATE _CRT_SECURE_NO_WARNINGS)

0 commit comments

Comments
 (0)