aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorPeter Carbonetto2018-03-01 14:31:44 -0600
committerGitHub2018-03-01 14:31:44 -0600
commit9df4b1c912a796383bbf9457aebaf9d82ae8f69d (patch)
treec8ab7ea1129f2f5f36d100b6274a044189e43c3b /src/main.cpp
parentde72b4a9235c6932364fc1930fc243abfdd134e6 (diff)
parentdd3ca7014de2d8f1a2cec36cc22ff93b1e929cc4 (diff)
downloadpangemma-9df4b1c912a796383bbf9457aebaf9d82ae8f69d.tar.gz
Merge pull request #139 from DannyArends/minGW_R
Added support to build GEMMA using the Rtool chain in Windows (x64).
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp6
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())