Skip to content

Commit

Permalink
try to fixed mkdir in linux
Browse files Browse the repository at this point in the history
  • Loading branch information
nodtem66 committed Feb 15, 2020
1 parent f5d3027 commit f98454c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/Scaffolder_2.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,9 @@ int make_dir(std::string& str) {
mbstowcs(wc, str.c_str(), str.size());
return _wmkdir(wc);
#else
#include <stdio.h>
#include <io.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
return mkdir(str.c_str(), 0733);
#endif
}

0 comments on commit f98454c

Please sign in to comment.