From: Tobias Markus Date: Wed, 11 Feb 2015 15:13:14 +0000 (+0100) Subject: Add optional lpSecurityAttributes parameter to CreateDirectory call to make compilati... X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=8f2d3b4b577297359c0cb57acb7e0782a3c35ea5;p=supertux.git Add optional lpSecurityAttributes parameter to CreateDirectory call to make compilation on MSYS2 possible --- 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); }