]> git.lyx.org Git - lyx.git/blobdiff - src/support/mkdir.C
fix typo that put too many include paths for most people
[lyx.git] / src / support / mkdir.C
index 580fcc8f94a1d2a73ab9e47097e2d4f8a0d368b9..67851cb6ff17f9feb3929d5f51e26a0d9eff4c47 100644 (file)
@@ -5,18 +5,11 @@
 #include <fcntl.h>
 #include <unistd.h>
 
-#ifdef CXX_WORKING_NAMESPACES
-namespace lyx {
-       int mkdir(char const * pathname, unsigned long int mode)
-       {
-               return ::mkdir(pathname, mode);
-       }
-}
-#else
+#include "LString.h"
+
 #include "lyxlib.h"
 
-int lyx::mkdir(char const * pathname, unsigned long int mode)
+int lyx::mkdir(string const & pathname, unsigned long int mode)
 {
-       return ::mkdir(pathname, mode);
+       return ::mkdir(pathname.c_str(), mode_t(mode));
 }
-#endif