X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmain.cpp;h=11f91d3f55e76d9b744498481e6330c4f3dd6fd0;hb=0362c6aae73c293d1c20277c12d362acfe0b2ef6;hp=a82663b85743dea91e2db3665f8208fead7e2043;hpb=f630be890494c849981e4fb52ea4740506e92bed;p=lyx.git diff --git a/src/main.cpp b/src/main.cpp index a82663b857..11f91d3f55 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -11,32 +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 - +#include #ifdef HAVE_IOS #include #endif +using namespace std; -namespace fs = boost::filesystem; int main(int argc, char * argv[]) { #ifdef HAVE_IOS - std::ios_base::sync_with_stdio(false); + ios_base::sync_with_stdio(false); #endif - fs::path::default_name_check(fs::no_check); // 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);