#define PATH_C
#include "support/path.h"
+#include "support/filename.h"
#include "support/lyxlib.h"
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();
}