Prevent wineg++ from including the SAL headers

This otherwise breaks compilation under Wine 6.20:

https://bugs.winehq.org/show_bug.cgi?id=51919
This commit is contained in:
Robbert van der Helm
2021-10-23 20:15:55 +02:00
parent aadc528bdd
commit 5be149cb52
2 changed files with 14 additions and 0 deletions
+7
View File
@@ -69,6 +69,13 @@ wine_compiler_options = [
#
# https://bugs.winehq.org/show_bug.cgi?id=50670
'-D__IFileOperation_INTERFACE_DEFINED__',
# This Wine 6.20 commit `dfdf56fbe47f8ff50ebe533e6d73f2de6546f008` added a
# bunch of new SAL includes to `windows.h`, which include things like `__in`
# and `__out`. This breaks libstdc++ compilation since they often use those
# names for function parameters.
#
# https://bugs.winehq.org/show_bug.cgi?id=51919
'-D__WINE_SAL_H__',
]
# NOTE: GCC doesn't 8-byte align doubles in structs on x86 for ABI-compatibilty