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 in CI with WinMain not being defined.

Signed-off-by: Avery King <[email protected]>
  • Loading branch information
generic-pers0n committed Sep 5, 2024
1 parent fc6aa42 commit 253ec67
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 253ec67

Please sign in to comment.