From 5f9861953eff5f9755f29e9bab6254ae4206937e Mon Sep 17 00:00:00 2001 From: Philip Kaufmann Date: Thu, 17 May 2012 18:30:09 +0200 Subject: fix RenameOver() and FileCommit() functions, to not generate compilation errors --- src/util.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/util.cpp') diff --git a/src/util.cpp b/src/util.cpp index 82c16feda..7a163632c 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -47,6 +47,7 @@ namespace boost { #ifndef NOMINMAX #define NOMINMAX #endif +#include /* for _commit */ #include "shlobj.h" #endif @@ -913,7 +914,7 @@ void CreatePidFile(const boost::filesystem::path &path, pid_t pid) bool RenameOver(boost::filesystem::path src, boost::filesystem::path dest) { #ifdef WIN32 - return MoveFileEx(src.string().c_str(), dest.string().c_str(), + return MoveFileExA(src.string().c_str(), dest.string().c_str(), MOVEFILE_REPLACE_EXISTING); #else int rc = std::rename(src.string().c_str(), dest.string().c_str()); -- cgit v1.2.3