From 8f2d3b4b577297359c0cb57acb7e0782a3c35ea5 Mon Sep 17 00:00:00 2001 From: Tobias Markus Date: Wed, 11 Feb 2015 16:13:14 +0100 Subject: [PATCH] Add optional lpSecurityAttributes parameter to CreateDirectory call to make compilation on MSYS2 possible --- src/util/file_system.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/file_system.cpp b/src/util/file_system.cpp index 5b2ee00b5..6082f9d7c 100644 --- a/src/util/file_system.cpp +++ b/src/util/file_system.cpp @@ -64,7 +64,7 @@ bool is_directory(const std::string& path) void mkdir(const std::string& directory) { #ifdef _WIN32 - if (!CreateDirectory(directory.c_str())) + if (!CreateDirectory(directory.c_str(), NULL)) { throw std::runtime_error("failed to create directory: " + directory); } -- 2.11.0