From f922d2d80359fa659f511d0fc8c18bdd11fe06f7 Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Fri, 28 Oct 2011 12:16:10 -0500 Subject: main.cc: Add a wrapper for two-argument mkdir on Windows --- src/main.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main.cc b/src/main.cc index 7541a28..f294db3 100644 --- a/src/main.cc +++ b/src/main.cc @@ -321,6 +321,14 @@ static void parseOptions(int argc, char** argv, Options& opts) { } } +#ifdef _WIN32 +/** + Wrapper function for Windows builds - mkdir takes only one param. +*/ +static int mkdir(const char *dirname, int /*permissions*/) { + return mkdir(dirname); +} +#endif /** setup the configutation files in -- cgit v0.11.2