mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-10 04:30:12 +02:00
Also fix shlobj.h import casing
This commit is contained in:
@@ -21,7 +21,7 @@ fi
|
|||||||
|
|
||||||
# Make sure all imports use the correct casing
|
# Make sure all imports use the correct casing
|
||||||
find "$sdk_directory" -type f \( -iname '*.h' -or -iname '*.cpp' \) -print0 |
|
find "$sdk_directory" -type f \( -iname '*.h' -or -iname '*.cpp' \) -print0 |
|
||||||
xargs -0 sed -i 's/^#include <Windows.h>$/#include <windows.h>/'
|
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
|
# 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"
|
sed -i 's/\bSMTG_OS_WINDOWS\b/0/g;s/\bSMTG_OS_LINUX\b/1/g' "$sdk_directory/base/source/fstring.cpp"
|
||||||
|
|||||||
Reference in New Issue
Block a user