Also define the shobjidl.h define globally

This was needed for Wine 6.2.
This commit is contained in:
Robbert van der Helm
2021-05-11 02:26:57 +02:00
parent af299f3c66
commit db6ecdbbd4
2 changed files with 8 additions and 10 deletions
-9
View File
@@ -22,15 +22,6 @@
#include "vst3-impls/host-context-proxy.h"
#include "vst3-impls/plug-frame-proxy.h"
// HACK: As of Wine commit `0c19e2e487d36a89531daf4897c0b6390d82a843` (or Wine
// 6.2), Wine's `shobjidl.h` cannot be compiled under C++ because one of
// the parameters in the file operations interface is now named
// `template`, which is a reserved keyword. Since we do not need this
// interface, we'll just hack around this by making sure it never gets
// defined.
//
// https://bugs.winehq.org/show_bug.cgi?id=50670
#define __IFileOperation_INTERFACE_DEFINED__
// NOLINTNEXTLINE(bugprone-suspicious-include)
#include <public.sdk/source/vst/hosting/module_win32.cpp>