]> git.tdb.fi Git - libs/core.git/blob - source/core/main.cpp
f73ef813c72e77c45baf480b2f08c6fcf7373371
[libs/core.git] / source / core / main.cpp
1 /* $Id$
2
3 This file is part of libmspcore
4 Copyright © 2006 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifdef WIN32
9 #include <windows.h>
10 #endif
11
12 #include "application.h"
13
14 #ifdef WIN32
15 int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE /*hPrevInstance*/, LPSTR /*lpCmdLine*/, int /*nCmdShow*/)
16
17         int argc        = 0;
18         LPWSTR *argv = CommandLineToArgvW(GetCommandLineW(), &argc);
19         return Msp::Application::run(argc, (char **)argv, hInstance);
20 }
21 #endif
22
23 int main(int argc, char **argv)
24 { return Msp::Application::run(argc, argv); }