Skip to content

Commit

Permalink
Windows: Use wxIMPLEMENT_WXWIN_MAIN
Browse files Browse the repository at this point in the history
Try to fix an issue on Windows x64 and ARM in CI with WinMain not being defined.

Signed-off-by: Avery King <[email protected]>
  • Loading branch information
generic-pers0n committed Sep 19, 2024
1 parent a62a888 commit cf49b8a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/TenacityApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -469,12 +469,18 @@ class IPCServ final : public wxServer
IMPLEMENT_APP_NO_MAIN(TenacityApp)
IMPLEMENT_WX_THEME_SUPPORT

#ifdef __WXMSW__
wxIMPLEMENT_WXWIN_MAIN
#else

int main(int argc, char *argv[])
{
wxDISABLE_DEBUG_SUPPORT();

return wxEntry(argc, argv);
}
#endif

#else
IMPLEMENT_APP(TenacityApp)
#endif
Expand Down

0 comments on commit cf49b8a

Please sign in to comment.