From d295b0225ec4da9d006941ea0d37aac9ce8beeb3 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sat, 3 Apr 2021 17:33:44 +0200 Subject: [PATCH] No longer patch Windows.h to windows.h in VST3 SDK This got fixed in VST 3.7.2. --- tools/patch-vst3-sdk.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/patch-vst3-sdk.sh b/tools/patch-vst3-sdk.sh index fb8d26e9..153460ee 100755 --- a/tools/patch-vst3-sdk.sh +++ b/tools/patch-vst3-sdk.sh @@ -19,9 +19,11 @@ if [[ -z $sdk_directory ]]; then exit 1 fi -# Make sure all imports use the correct casing +# Make sure all imports use the correct casing. In version 3.7.2 they actually +# fixed the casing for `windows.h`, but `shlobj.h` is still incorrect. We should +# remove this once casing issues have been fixed everywhere. find "$sdk_directory" -type f \( -iname '*.h' -or -iname '*.cpp' \) -print0 | - xargs -0 sed -i -E 's/^#include <(Windows.h|ShlObj.h)>$/#include <\L\1\E>/' + xargs -0 sed -i -E 's/^#include <(ShlObj.h)>$/#include <\L\1\E>/' # Use the proper libc functions instead of the MSVC intrinsics. These are also # used in `fstring.cpp`, but there we will patch the entire file to use the