Fix build on Wine 6.8 #103

Wine dropped `WINE_NOWINSOCK`, so now we sadly have to define this
globally instead.
This commit is contained in:
Robbert van der Helm
2021-05-11 02:21:23 +02:00
parent f1d7b7bf57
commit 5577c4bfd8
5 changed files with 16 additions and 4 deletions
+5 -1
View File
@@ -212,7 +212,11 @@ if with_vst3
vst3_wine_compiler_options = [
# Some stuff from `windows.h` results in conflicting definitions
'-DNOMINMAX',
'-DWINE_NOWINSOCK',
# Winsock conflicts with the Posix sockets API. Before Wine 6.8 there was a
# `WINE_NOWINSOCK` that would exclude just `winsock.h` from `windows.h`, but
# they got rid of that so we now need to explicitly define the ifdef guards
'-D__WINE_WINSOCKAPI_STDLIB_H',
'-D_WINSOCKAPI_',
]
vst3_base_wine_64bit = static_library(
'vst3_base_wine_64bit',