]> git.lyx.org Git - lyx.git/blob - src/main.C
If I ever see another licence blurb again, it'll be too soon...
[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 namespace lyx::support;
23
24 int main(int argc, char * argv[])
25 {
26 #ifdef HAVE_IOS
27         std::ios_base::sync_with_stdio(false);
28 #endif
29
30         os::init(&argc, &argv);
31
32         // initialize for internationalized version *EK*
33         locale_init();
34
35         LyX lyx(argc, argv);
36         return 0;
37 }