From 06884ebf6768322c0f4705c65609b10c748d27b7 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Wed, 2 Dec 2020 16:10:50 +0100 Subject: [PATCH] Also fix shlobj.h import casing --- tools/patch-vst3-sdk.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/patch-vst3-sdk.sh b/tools/patch-vst3-sdk.sh index fad11cac..3be72ad3 100755 --- a/tools/patch-vst3-sdk.sh +++ b/tools/patch-vst3-sdk.sh @@ -21,7 +21,7 @@ fi # Make sure all imports use the correct casing find "$sdk_directory" -type f \( -iname '*.h' -or -iname '*.cpp' \) -print0 | - xargs -0 sed -i 's/^#include $/#include /' + xargs -0 sed -i -E 's/^#include <(Windows.h|ShlObj.h)>$/#include <\L\1\E>/' # Use the string manipulation functions from the C standard library sed -i 's/\bSMTG_OS_WINDOWS\b/0/g;s/\bSMTG_OS_LINUX\b/1/g' "$sdk_directory/base/source/fstring.cpp"