Fix compile error on MinGW, bug887.

This commit is contained in:
Wilson Snyder
2015-02-26 20:40:45 -05:00
parent 6ac672b4a3
commit 751384cb5c
15 changed files with 281 additions and 200 deletions
+2 -9
View File
@@ -40,6 +40,7 @@
#include "V3Global.h"
#include "V3File.h"
#include "V3Os.h"
#include "V3PreShell.h"
#include "V3Ast.h"
@@ -259,19 +260,11 @@ bool V3File::checkTimes(const string& filename, const string& cmdline) {
return dependImp.checkTimes(filename, cmdline);
}
void V3File::createDir(const string& dirname) {
#ifndef _WIN32
mkdir(dirname.c_str(), 0777);
#else
mkdir(dirname.c_str());
#endif
}
void V3File::createMakeDir() {
static bool created = false;
if (!created) {
created = true;
createDir(v3Global.opt.makeDir());
V3Os::createDir(v3Global.opt.makeDir());
}
}