From 1200689245aea59a1620145a3f85cc4bd76b561f Mon Sep 17 00:00:00 2001 From: Matthew Hughes Date: Sun, 15 Mar 2015 09:43:13 -0500 Subject: [PATCH] Update file_access_windows.cpp for mingw cross-compile Cross compiling on linux failed on this file. Changing case of the windows.h and shlwapi.h allows mingw to find these headers but setting WINVER 0x0500 is needed for the compiler to find ReplaceFileW --- drivers/windows/file_access_windows.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/windows/file_access_windows.cpp b/drivers/windows/file_access_windows.cpp index e24685432ce..562ddd02e2c 100644 --- a/drivers/windows/file_access_windows.cpp +++ b/drivers/windows/file_access_windows.cpp @@ -28,8 +28,10 @@ /*************************************************************************/ #ifdef WINDOWS_ENABLED -#include -#include "Shlwapi.h" +#define WINVER 0x0500 + +#include +#include "shlwapi.h" #include "file_access_windows.h"