lyx_mirror/src/support/chdir.C

27 lines
478 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 "support/lyxlib.h"
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
int lyx::support::chdir(std::string const & name)
{
#ifndef __EMX__
return ::chdir(name.c_str());
#else
return ::_chdir2(name.c_str());
#endif
}