// 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/lyxlib.h"
+
+
+using std::string;
+
namespace lyx {
namespace support {
{
if (!path.empty()) {
pushedDir_ = getcwd();
+
if (pushedDir_.empty() || chdir(path))
/* FIXME: throw */;
} else {