Disable main() on win32 in favor of WinMain
[libs/core.git] / source / core / main.cpp
index dc8122dd3031bb02bcb43d10694f48b2760958e4..fa28c1ffed271c2c6c03736d0bafcb71ad13841d 100644 (file)
@@ -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