diff --git a/src/TenacityApp.cpp b/src/TenacityApp.cpp index 01fa38706..b1010b424 100644 --- a/src/TenacityApp.cpp +++ b/src/TenacityApp.cpp @@ -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