X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmain.cpp;h=11f91d3f55e76d9b744498481e6330c4f3dd6fd0;hb=0362c6aae73c293d1c20277c12d362acfe0b2ef6;hp=1e4634ca0f8e37bcee5b0369cee97065b3734cc2;hpb=f7ab948b9f5a892003604b12ea0c165baa2b9d50;p=lyx.git diff --git a/src/main.cpp b/src/main.cpp index 1e4634ca0f..11f91d3f55 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -11,26 +11,30 @@ #include -#include "debug.h" #include "LyX.h" -#include "gettext.h" +#include "support/debug.h" +#include "support/gettext.h" #include "support/os.h" +#include #ifdef HAVE_IOS #include #endif +using namespace std; + + int main(int argc, char * argv[]) { #ifdef HAVE_IOS - std::ios_base::sync_with_stdio(false); + ios_base::sync_with_stdio(false); #endif // To avoid ordering of global object problems with some // stdlibs we do the initialization here, but still as // early as possible. - lyx::lyxerr.rdbuf(std::cerr.rdbuf()); + lyx::lyxerr.setStream(cerr); lyx::support::os::init(argc, argv);