]> git.lyx.org Git - lyx.git/blob - src/support/chdir.C
* lyxfunctional.h: delete compare_memfun and helper classes
[lyx.git] / src / support / chdir.C
1 /**
2  * \file chdir.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  *
8  * Full author contact details are available in file CREDITS.
9  */
10
11 #include <config.h>
12
13 #include <unistd.h>
14
15 #include "support/lyxlib.h"
16
17 int lyx::support::chdir(std::string const & name)
18 {
19 #ifndef __EMX__
20         return ::chdir(name.c_str());
21 #else
22         return ::_chdir2(name.c_str());
23 #endif
24 }