diff options
Diffstat (limited to 'scripts/basic/split-include.c')
-rw-r--r-- | scripts/basic/split-include.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/scripts/basic/split-include.c b/scripts/basic/split-include.c index 791d142a8..9a9260f2c 100644 --- a/scripts/basic/split-include.c +++ b/scripts/basic/split-include.c | |||
@@ -39,8 +39,6 @@ | |||
39 | exit(1); \ | 39 | exit(1); \ |
40 | } | 40 | } |
41 | 41 | ||
42 | |||
43 | |||
44 | int main(int argc, const char * argv []) | 42 | int main(int argc, const char * argv []) |
45 | { | 43 | { |
46 | const char * str_my_name; | 44 | const char * str_my_name; |
@@ -89,7 +87,11 @@ int main(int argc, const char * argv []) | |||
89 | /* Make output directory if needed. */ | 87 | /* Make output directory if needed. */ |
90 | if (stat(str_dir_config, &stat_buf) != 0) | 88 | if (stat(str_dir_config, &stat_buf) != 0) |
91 | { | 89 | { |
90 | #ifdef __MINGW32__ | ||
91 | if (mkdir(str_dir_config) != 0) | ||
92 | #else | ||
92 | if (mkdir(str_dir_config, 0755) != 0) | 93 | if (mkdir(str_dir_config, 0755) != 0) |
94 | #endif | ||
93 | ERROR_EXIT(str_dir_config); | 95 | ERROR_EXIT(str_dir_config); |
94 | } | 96 | } |
95 | 97 | ||
@@ -149,7 +151,12 @@ int main(int argc, const char * argv []) | |||
149 | { | 151 | { |
150 | ptarget[islash] = '\0'; | 152 | ptarget[islash] = '\0'; |
151 | if (stat(ptarget, &stat_buf) != 0 | 153 | if (stat(ptarget, &stat_buf) != 0 |
152 | && mkdir(ptarget, 0755) != 0) | 154 | #ifdef __MINGW32__ |
155 | && mkdir(ptarget) != 0 | ||
156 | #else | ||
157 | && mkdir(ptarget, 0755) != 0 | ||
158 | #endif | ||
159 | ) | ||
153 | ERROR_EXIT( ptarget ); | 160 | ERROR_EXIT( ptarget ); |
154 | ptarget[islash] = '/'; | 161 | ptarget[islash] = '/'; |
155 | } | 162 | } |