From b62c81b2a8a5487226d528be3eea461bc3eb2afc Mon Sep 17 00:00:00 2001 From: mariuszmaximus Date: Sat, 28 Sep 2024 17:23:29 +0200 Subject: [PATCH] fix for mingw: undefined symbol WinMain (#39) Thanks --- src/imrad.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/imrad.cpp b/src/imrad.cpp index 68dc1f1..53ed965 100644 --- a/src/imrad.cpp +++ b/src/imrad.cpp @@ -1955,7 +1955,7 @@ std::string GetRootPath() #endif } -#ifdef WIN32 +#if (WIN32) && !(__MINGW32__) int WINAPI wWinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,