Skip to content

Commit

Permalink
msys2 mingw64 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kapodamy committed Dec 8, 2024
1 parent 927e248 commit 16cd6a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RSDKv5/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ INT WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR lpCmdLine,
RSDK::RenderDevice::hPrevInstance = hPrevInstance;
RSDK::RenderDevice::nShowCmd = nShowCmd;

return RSDK_main(1, &lpCmdLine, LinkGameLogic);
return RSDK_main(1, &lpCmdLine, (void*)LinkGameLogic);
}
#else
INT WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR lpCmdLine, INT nShowCmd)
{
return RSDK_main(1, &lpCmdLine, LinkGameLogic);
return RSDK_main(1, &lpCmdLine, (void*)LinkGameLogic);
}
#endif

Expand Down
2 changes: 2 additions & 0 deletions platforms/Windows.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ if(USE_MINIAUDIO)
message(FATAL_ERROR "portaudio not supported for DX9 and DX11.")
endif()
target_compile_definitions(RetroEngine PRIVATE RETRO_AUDIODEVICE_MINI=1)
elseif(MINGW AND WIN32)
target_link_libraries(RetroEngine ksuser xaudio2_8)
endif()

target_compile_definitions(RetroEngine PRIVATE _CRT_SECURE_NO_WARNINGS)
Expand Down

0 comments on commit 16cd6a0

Please sign in to comment.