]> git.lyx.org Git - features.git/blobdiff - src/support/mkdir.C
get rid of dead code, some new functions constify variables.
[features.git] / src / support / mkdir.C
index 580fcc8f94a1d2a73ab9e47097e2d4f8a0d368b9..e3a5102ecb0b09a511627f792844705cc6aa8157 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);
 }
-#endif