From 184236f202291264eb799e949ae5edd79a9b2d83 Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Mon, 25 Apr 2022 21:21:07 +0200 Subject: [PATCH] Fix more MSVC warnings - Only one graphical entry point may be defined, otherwise the linker is confused and has to implicitly make a decision on which one to use. WinMain has CLAs as ANSI strings, wWinMain as Unicode ones. We're not passing -municode on MinGW and both MSVC & MinGW default to WinMain. --- src/winMain.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/winMain.cpp b/src/winMain.cpp index cb8a88b8..69034b9f 100644 --- a/src/winMain.cpp +++ b/src/winMain.cpp @@ -31,16 +31,3 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prevInst, PSTR args, int state) { } return main(argc,argv); } - -int WINAPI wWinMain(HINSTANCE inst, HINSTANCE prevInst, PWSTR args, int state) { - int argc=0; - wchar_t** argw=CommandLineToArgvW(args,&argc); - char** argv=new char*[argc+1]; - argv[argc]=NULL; - for (int i=0; i