From fc2280c6d6eeaea30d8dae119e260183ccfa465c Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 4 Sep 2012 23:06:57 +0300 Subject: [PATCH 1/1] Disable main() on win32 in favor of WinMain --- source/core/main.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/source/core/main.cpp b/source/core/main.cpp index dc8122d..fa28c1f 100644 --- a/source/core/main.cpp +++ b/source/core/main.cpp @@ -36,7 +36,10 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE /*hPrevInstance*/, LPSTR /*l delete[] argv_buf; return exit_code; } -#endif +#else int main(int argc, char **argv) -{ return Msp::Application::run(argc, argv); } +{ + return Msp::Application::run(argc, argv); +} +#endif -- 2.43.0