From: Mikko Rasa Date: Tue, 4 Sep 2012 20:06:57 +0000 (+0300) Subject: Disable main() on win32 in favor of WinMain X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=fc2280c6d6eeaea30d8dae119e260183ccfa465c;p=libs%2Fcore.git Disable main() on win32 in favor of WinMain --- 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