diff --git a/Makefile.libretro b/Makefile.libretro index df6d820..33b3dae 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -299,8 +299,10 @@ else ifneq (,$(findstring windows_msvc2017,$(platform))) PlatformSuffix = $(subst windows_msvc2017_,,$(platform)) ifneq (,$(findstring desktop,$(PlatformSuffix))) WinPartition = desktop + CFLAGS += -DWINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP else ifneq (,$(findstring uwp,$(PlatformSuffix))) WinPartition = uwp + CFLAGS += -DWINAPI_FAMILY=WINAPI_FAMILY_APP endif TargetArchMoniker = $(subst $(WinPartition)_,,$(PlatformSuffix)) @@ -343,6 +345,7 @@ else ifneq (,$(findstring windows_msvc2017,$(platform))) VcCompilerToolsVer := $(shell cat "$(VsInstallRoot)/VC/Auxiliary/Build/Microsoft.VCToolsVersion.default.txt" | grep -o '[0-9\.]*') VcCompilerToolsDir := $(VsInstallRoot)/VC/Tools/MSVC/$(VcCompilerToolsVer) + WindowsSDKSharedIncludeDir := $(shell cygpath -w "$(WindowsSdkDir)\Include\$(WindowsSDKVersion)\shared") WindowsSDKUCRTIncludeDir := $(shell cygpath -w "$(WindowsSdkDir)\Include\$(WindowsSDKVersion)\ucrt") WindowsSDKUMIncludeDir := $(shell cygpath -w "$(WindowsSdkDir)\Include\$(WindowsSDKVersion)\um") WindowsSDKUCRTLibDir := $(shell cygpath -w "$(WindowsSdkDir)\Lib\$(WindowsSDKVersion)\ucrt\$(TargetArchMoniker)") @@ -356,7 +359,7 @@ else ifneq (,$(findstring windows_msvc2017,$(platform))) INCLUDE := $(shell IFS=$$'\n'; cygpath -w "$(VcCompilerToolsDir)/include") LIB := $(shell IFS=$$'\n'; cygpath -w "$(VcCompilerToolsDir)/lib/$(TargetArchMoniker)") - export INCLUDE := $(INCLUDE);$(WindowsSDKUCRTIncludeDir);$(WindowsSDKUMIncludeDir) + export INCLUDE := $(INCLUDE);$(WindowsSDKSharedIncludeDir);$(WindowsSDKUCRTIncludeDir);$(WindowsSDKUMIncludeDir) export LIB := $(LIB);$(WindowsSDKUCRTLibDir);$(WindowsSDKUMLibDir) TARGET := $(TARGET_NAME)_libretro.dll PSS_STYLE :=2