]> git.lyx.org Git - lyx.git/blobdiff - src/support/path.h
some new (not extensive) changes, some fixes, will probably reverto to .la libs later...
[lyx.git] / src / support / path.h
index ad5a905b4008aa0989d14c68835a515fad08de20..532e808d4f819a9d95a365d5e910c63a3db48152 100644 (file)
@@ -7,6 +7,7 @@
 #include "gettext.h"
 #include "support/filetools.h"
 #include "lyx_gui_misc.h"
+#include "lyxlib.h"
 
 class Path {
 public:
@@ -16,7 +17,7 @@ public:
        {
                if (!path.empty()) { 
                        pushedDir_ = GetCWD();
-                       if (pushedDir_.empty() || chdir(path.c_str())) {
+                       if (pushedDir_.empty() || lyx::chdir(path.c_str())) {
                                WriteFSAlert(_("Error: Could not change to directory: "), 
                                             path);
                        }
@@ -37,7 +38,7 @@ public:
                                     pushedDir_);
                        return 0;
                }
-               if (chdir(pushedDir_.c_str())) {
+               if (lyx::chdir(pushedDir_.c_str())) {
                        WriteFSAlert(
                                _("Error: Could not change to directory: "), 
                                pushedDir_);