lyx_mirror/src/support/chdir.C

25 lines
443 B
C++
Raw Normal View History

/**
* \file chdir.C
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author Lars Gullik Bj<EFBFBD>nnes
*
* Full author contact details are available in file CREDITS
*/
#include <config.h>
#include <unistd.h>
#include "support/lyxlib.h"
int lyx::support::chdir(string const & name)
{
#ifndef __EMX__
return ::chdir(name.c_str());
#else
return ::_chdir2(name.c_str());
#endif
}