diff options
author | Matthew Hughes <matt.hughes@shrdlusblocks.com> | 2015-03-15 09:43:13 -0500 |
---|---|---|
committer | Matthew Hughes <matt.hughes@shrdlusblocks.com> | 2015-03-15 09:43:13 -0500 |
commit | 1200689245aea59a1620145a3f85cc4bd76b561f (patch) | |
tree | 23005b6861a80b90a3eebc0420f54413798f20ec /drivers/windows/file_access_windows.cpp | |
parent | 51b8102f14ff521334d956f9ebeef7b6e873a957 (diff) |
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
Diffstat (limited to 'drivers/windows/file_access_windows.cpp')
-rw-r--r-- | drivers/windows/file_access_windows.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/windows/file_access_windows.cpp b/drivers/windows/file_access_windows.cpp index e24685432c..562ddd02e2 100644 --- a/drivers/windows/file_access_windows.cpp +++ b/drivers/windows/file_access_windows.cpp @@ -28,8 +28,10 @@ /*************************************************************************/ #ifdef WINDOWS_ENABLED -#include <Windows.h> -#include "Shlwapi.h" +#define WINVER 0x0500 + +#include <windows.h> +#include "shlwapi.h" #include "file_access_windows.h" |