From 178bb0702532c29dcb67b930f4557f7ee5eade98 Mon Sep 17 00:00:00 2001 From: Avery King Date: Thu, 5 Sep 2024 14:50:11 -0700 Subject: [PATCH] Windows: Use wxIMPLEMENT_WXWIN_MAIN Try to fix an issue on Windows in CI with WinMain not being defined. Signed-off-by: Avery King --- src/TenacityApp.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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