From 41cb7af87b2d918768dc932318964ddb5bd849f0 Mon Sep 17 00:00:00 2001 From: Avery King Date: Thu, 5 Sep 2024 22:17:59 -0700 Subject: [PATCH] Windows: Use wxIMPLEMENT_WXWIN_MAIN Try to fix an issue on Windows x64 and ARM 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..b434c5745 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