3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Lars Gullik Bjønnes
8 * Full author contact details are available in file CREDITS.
13 #include "support/lyxlib.h"
23 int lyx::support::chdir(std::string const & name)
26 return ::_chdir2(name.c_str());
28 return SetCurrentDirectory(name.c_str()) != 0 ? 0 : -1;
30 return ::chdir(name.c_str());