Downstream MinGW fixes
* Don't include DX SDK at all on MinGW (MinGW have their own headers)
* Lower case header name for cross-compilation on Linux
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c750916..4ecede4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -46,7 +46,7 @@
# Only add the DXSDK include directory if the environment variable is
# defined. Since the DXSDK has merged into the Windows SDK, this is
# only required in rare cases.
- if (DEFINED ENV{DXSDK_DIR})
+ if (DEFINED ENV{DXSDK_DIR} AND NOT (MINGW OR MSYS OR CYGWIN))
include_directories ($ENV{DXSDK_DIR}/Include)
endif ()
else ()
diff --git a/loader/windows/icd_windows_hkr.c b/loader/windows/icd_windows_hkr.c
index 5f6c534..6003f2c 100644
--- a/loader/windows/icd_windows_hkr.c
+++ b/loader/windows/icd_windows_hkr.c
@@ -23,7 +23,7 @@
#include <assert.h>
#include <stdbool.h>
#include <initguid.h>
-#include <Devpkey.h>
+#include <devpkey.h>
#include <devguid.h>
// This GUID was only added to devguid.h on Windows SDK v10.0.16232 which