X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2Fmkdir.C;h=e9cd1b622f1a46e425556488f2230b60bda550e5;hb=2c3ae20fc2ed8a1e9d8e46be5b20d3fc88b48dfc;hp=580fcc8f94a1d2a73ab9e47097e2d4f8a0d368b9;hpb=2b7e2f9a7df80c0dc30e35f8d8aeb9db6c7e786a;p=lyx.git diff --git a/src/support/mkdir.C b/src/support/mkdir.C index 580fcc8f94..e9cd1b622f 100644 --- a/src/support/mkdir.C +++ b/src/support/mkdir.C @@ -5,18 +5,12 @@ #include #include -#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); + // FIXME: why don't we have mode_t in lyx::mkdir prototype ?? + return ::mkdir(pathname.c_str(), mode_t(mode)); } -#endif