]> git.tdb.fi Git - libs/core.git/commitdiff
Disable main() on win32 in favor of WinMain
authorMikko Rasa <tdb@tdb.fi>
Tue, 4 Sep 2012 20:06:57 +0000 (23:06 +0300)
committerMikko Rasa <tdb@tdb.fi>
Tue, 4 Sep 2012 20:06:57 +0000 (23:06 +0300)
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