diff options
author | DannyArends | 2018-02-28 22:09:24 +0100 |
---|---|---|
committer | DannyArends | 2018-02-28 22:09:24 +0100 |
commit | 3b6aafaa2f320f5bad2b76bf44b08257b4972ecd (patch) | |
tree | cb611a1a68ca3abddc163a713d2e6ee1d68b2820 /src/main.cpp | |
parent | 356f528e52b5cdd13812f64308cbedd87cc0c74f (diff) | |
download | pangemma-3b6aafaa2f320f5bad2b76bf44b08257b4972ecd.tar.gz |
MinGW mkdir function doesn't allow for S_IRWXU, params
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 706ac35..deadc63 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -58,7 +58,11 @@ int main(int argc, char *argv[]) { ifstream check_dir((cPar.path_out).c_str()); if (!check_dir) { - mkdir((cPar.path_out).c_str(), S_IRWXU | S_IRGRP | S_IROTH); + #ifdef WINDOWS + mkdir((cPar.path_out).c_str()); + #else + mkdir((cPar.path_out).c_str(), S_IRWXU | S_IRGRP | S_IROTH); + #endif } if (!is_quiet_mode()) |