Downstream MinGW fixes
authorMorris Hafner <morris.hafner@codeplay.com>
Wed, 8 May 2019 12:17:55 +0000 (13:17 +0100)
committerBen Ashbaugh <ben.ashbaugh@intel.com>
Wed, 8 May 2019 14:58:05 +0000 (07:58 -0700)
* Don't include DX SDK at all on MinGW (MinGW have their own headers)
* Lower case header name for cross-compilation on Linux

CMakeLists.txt
loader/windows/icd_windows_hkr.c

index c7509169a2846cb711e083e1ee8be66c559a6437..4ecede472ae583dbcc24602809dd7021a5ddb541 100644 (file)
@@ -46,7 +46,7 @@ if (WIN32)
     # 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 ()
index 5f6c53459285cf14d688f1352c4d2a5cf421ec12..6003f2c272485a9269e070489c0a48e5cc601f39 100644 (file)
@@ -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