]> git.lyx.org Git - lyx.git/blob - src/main.C
c4d12b50ac8854ea1e2e57da3a9b3cdd30daaf74
[lyx.git] / src / main.C
1 /**
2  * \file main.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author Lars Gullik Bjønnes
7  * \author Jean Marc Lasgouttes
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #include <config.h>
13
14 #include "lyx_main.h"
15 #include "gettext.h"
16 #include "support/os.h"
17
18 #ifdef HAVE_IOS
19 #include <ios>
20 #endif
21
22 using lyx::support::os;
23
24
25 int main(int argc, char * argv[])
26 {
27 #ifdef HAVE_IOS
28         std::ios_base::sync_with_stdio(false);
29 #endif
30
31         os::init(&argc, &argv);
32
33         // initialize for internationalized version *EK*
34         locale_init();
35
36         LyX lyx(argc, argv);
37         return 0;
38 }