]> git.lyx.org Git - lyx.git/blobdiff - src/support/mkdir.C
remove !NEW_INSETS cruft
[lyx.git] / src / support / mkdir.C
index dcfd322b4cf469b8803a434a35c485573ad5fcf2..67851cb6ff17f9feb3929d5f51e26a0d9eff4c47 100644 (file)
@@ -5,18 +5,11 @@
 #include <fcntl.h>
 #include <unistd.h>
 
-#ifdef CXX_WORKING_NAMESPACES
-namespace lyx {
-       int mkdir(char const * pathname, mode_t mode)
-       {
-               return ::mkdir(pathname, mode);
-       }
-}
-#else
+#include "LString.h"
+
 #include "lyxlib.h"
 
-int lyx::mkdir(char const * pathname, mode_t mode)
+int lyx::mkdir(string const & pathname, unsigned long int mode)
 {
-       return ::mkdir(pathname, mode);
+       return ::mkdir(pathname.c_str(), mode_t(mode));
 }
-#endif