]> git.tdb.fi Git - libs/core.git/blob - source/core/main.cpp
19791eefddf697c148901094d6e62398ea46a833
[libs/core.git] / source / core / main.cpp
1 #ifdef WIN32
2 #include <windows.h>
3 #endif
4 #include "application.h"
5
6 #ifdef WIN32
7 int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE /*hPrevInstance*/, LPSTR /*lpCmdLine*/, int /*nCmdShow*/)
8
9         int argc        = 0;
10         LPWSTR *argv = CommandLineToArgvW(GetCommandLineW(), &argc);
11         return Msp::Application::run(argc, (char **)argv, hInstance);
12 }
13 #endif
14
15 int main(int argc, char **argv)
16 { return Msp::Application::run(argc, argv); }