Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Vermeulen <jtv@kursk>2015-03-23 18:00:01 +0300
committerJeroen Vermeulen <jtv@kursk>2015-03-23 18:00:01 +0300
commit01d3db1629b507c3ae7f8a3c80d8d6b68d745d1f (patch)
tree89034094da126aac452b1465addd5f1e0d380e0f
parentfaa3ae8afc7d0d1f8d4d60abb06d81ec35dc7c82 (diff)
Adjust for MinGW's mkdir().
MinGW has mkdir(), but it only accepts one argument: the directory's path. It does not accept a file mode.
-rw-r--r--jam-files/engine/fileunix.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/jam-files/engine/fileunix.c b/jam-files/engine/fileunix.c
index 6c675c10a..8af63dcbf 100644
--- a/jam-files/engine/fileunix.c
+++ b/jam-files/engine/fileunix.c
@@ -134,10 +134,15 @@ void file_dirscan_( file_info_t * const d, scanback func, void * closure )
int file_mkdir( char const * const path )
{
+#if defined(__MINGW32__)
+ /* MinGW's mkdir() takes only one argument: the path. */
+ mkdir(path);
+#else
/* Explicit cast to remove const modifiers and avoid related compiler
* warnings displayed when using the intel compiler.
*/
return mkdir( (char *)path, 0777 );
+#endif
}