浏览代码

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
Matthew Hughes 10 年之前
父节点
当前提交
1200689245
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      drivers/windows/file_access_windows.cpp

+ 4 - 2
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"