// Needed to prevent the definition of the unnamed_Path macro in the header file.
#define PATH_C
-#include "path.h"
-#include "lyxlib.h"
+#include "support/path.h"
+#include "support/filename.h"
+#include "support/lyxlib.h"
using std::string;
{
if (!path.empty()) {
pushedDir_ = getcwd();
- if (pushedDir_.empty() || chdir(path))
- /* FIXME: throw */;
+
+ if (pushedDir_.empty() || chdir(FileName(path))) {
+ /* FIXME: throw */
+ }
} else {
popped_ = true;
}
return 0;
}
- if (chdir(pushedDir_)) {
+ if (chdir(FileName(pushedDir_))) {
// should throw an exception
// throw DirChangeError();
}