-From 52ea4183d9f3462acc02fe0af18413b5c1c3c40b Mon Sep 17 00:00:00 2001
+From fdfe2fd84b5ae1d3ef7adf92e13b880c72b58a53 Mon Sep 17 00:00:00 2001
 From: DeadSix27 <DeadSix27@users.noreply.github.com>
-Date: Sat, 21 Sep 2019 14:53:16 +0200
+Date: Wed, 30 Oct 2019 17:14:23 +0100
 Subject: [PATCH] fix cross compiling with mingw
 
 ---
- CMakeLists.txt        |  2 +-
- loader/CMakeLists.txt | 16 ++++++++--------
+ loader/CMakeLists.txt | 15 ++++++++-------
  loader/loader.c       |  4 ++++
  loader/loader.rc      |  5 ++++-
  loader/vulkan.pc.in   |  4 ++--
- 5 files changed, 19 insertions(+), 12 deletions(-)
+ 4 files changed, 18 insertions(+), 10 deletions(-)
 
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 6bd819dad..499dd07ad 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -119,7 +119,7 @@ if(UNIX AND NOT APPLE) # i.e.: Linux
- endif()
- 
- if(WIN32)
--    find_package(WDK REQUIRED)
-+    #find_package(WDK REQUIRED)
-     option(ENABLE_WIN10_ONECORE "Link the loader with OneCore umbrella libraries" OFF)
-     option(ENABLE_STATIC_LOADER "Build the loader as a static library" OFF)
- endif()
 diff --git a/loader/CMakeLists.txt b/loader/CMakeLists.txt
-index 3e8d2a2c0..e0cce6e73 100644
+index 053a20c16..f5074243f 100644
 --- a/loader/CMakeLists.txt
 +++ b/loader/CMakeLists.txt
 @@ -58,7 +58,7 @@ endif()

 
 Name: @CMAKE_PROJECT_NAME@
-- 
2.22.0


     # Use static MSVCRT libraries
     foreach(configuration
             in
@@ -125,7 +125,7 @@ set(ASM_FAILURE_MSG "The build will fall back on building with C code\n")
 set(ASM_FAILURE_MSG "${ASM_FAILURE_MSG}Note that this may be unsafe, as the C code requires tail-call optimizations to remove")
 set(ASM_FAILURE_MSG "${ASM_FAILURE_MSG} the stack frame for certain calls. If the compiler does not do this, then unknown device")
 set(ASM_FAILURE_MSG "${ASM_FAILURE_MSG} extensions will suffer from a corrupted stack.")
