Also patch string conversion for winelib

This commit is contained in:
Robbert van der Helm
2020-12-02 17:18:23 +01:00
parent 9a57ce0c5e
commit f3d17b5e99
+5
View File
@@ -63,6 +63,11 @@ replace_char16 "using Converter = std::wstring_convert<std::codecvt_utf8_utf16<c
# version here is trying to do something funky
sed -i 's/\b__MINGW32__\b/__NOPE__/g' "$sdk_directory/pluginterfaces/base/funknown.cpp"
# The string conversion functions in the VST3 SDK itself are not mingw aware and
# will thus use the wrong string types since we're not compiling with MSVC
# TODO: Figure out if this is actually needed
sed -i 's/^#if defined(_MSC_VER) && .\+$/#if __WINE__/' "$sdk_directory/public.sdk/source/vst/utility/stringconvert.cpp"
# Use the proper `<filesystem>` header instead of the experimental one
# TODO: Check if <filesystem> now works with Winelib, or replace with Boost
sed -i 's/^#if _HAS_CXX17 && defined(_MSC_VER)$/#if 1/' "$sdk_directory/public.sdk/source/vst/hosting/module_win32.cpp"