-From 87a8fec78742571a565984b5538ef761cbc3d625 Mon Sep 17 00:00:00 2001
+From 4bd08e4bd9420ffc4c9988d32dd49e8d9d912b6d Mon Sep 17 00:00:00 2001
 From: DeadSix27 <DeadSix27@users.noreply.github.com>
-Date: Fri, 9 Aug 2019 16:29:58 +0200
-Subject: [PATCH] fix cross compiling
+Date: Thu, 19 Sep 2019 18:19:41 +0200
+Subject: [PATCH] fix cross compiling with mingw
 
 ---
  CMakeLists.txt        |  2 +-
  loader/CMakeLists.txt | 16 ++++++++--------
- loader/loader.c       |  4 ++++
+ loader/loader.c       |  6 +++++-
  loader/loader.rc      |  5 ++++-
  loader/vulkan.pc.in   |  4 ++--
- 5 files changed, 19 insertions(+), 12 deletions(-)
+ 5 files changed, 20 insertions(+), 13 deletions(-)
 
 diff --git a/CMakeLists.txt b/CMakeLists.txt
 index 81532fdb4..bee984e0b 100644

     # Use static MSVCRT libraries
     foreach(configuration
             in
@@ -121,7 +121,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.")

     target_link_libraries(vulkan ${CMAKE_DL_LIBS} -lpthread -lm)
     target_link_libraries(vulkan Vulkan::Headers)
 
@@ -298,9 +300,7 @@ else()
         include(FindPkgConfig QUIET)
         if(PKG_CONFIG_FOUND)
             set(VK_API_VERSION "${VulkanHeaders_VERSION_MAJOR}.${VulkanHeaders_VERSION_MINOR}.${VulkanHeaders_VERSION_PATCH}")
