              install(FILES "${CMAKE_CURRENT_BINARY_DIR}/vulkan.pc" DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
          endif()
 diff --git a/loader/loader.c b/loader/loader.c
-index 39ccc2522..dc9b55afd 100644
+index d828529b8..9d5ed1128 100644
 --- a/loader/loader.c
 +++ b/loader/loader.c
-@@ -675,6 +675,10 @@ out:
+@@ -672,6 +672,10 @@ out:
  //
  // *reg_data contains a string list of filenames as pointer.
  // When done using the returned string list, the caller should free the pointer.

     # 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.")

From fdfe2fd84b5ae1d3ef7adf92e13b880c72b58a53 Mon Sep 17 00:00:00 2001
From: DeadSix27 <DeadSix27@users.noreply.github.com>
Date: Wed, 30 Oct 2019 17:14:23 +0100
Subject: [PATCH] fix cross compiling with mingw

---
 loader/CMakeLists.txt | 15 ++++++++-------
 loader/loader.c       |  4 ++++
 loader/loader.rc      |  5 ++++-
 loader/vulkan.pc.in   |  4 ++--
 4 files changed, 18 insertions(+), 10 deletions(-)

diff --git a/loader/CMakeLists.txt b/loader/CMakeLists.txt
index 053a20c16..f5074243f 100644
--- a/loader/CMakeLists.txt
+++ b/loader/CMakeLists.txt
@@ -58,7 +58,7 @@ endif()
