[PATCH] include: Define the _STGMEDIUM_UNION type for C++ only. (original) (raw)

Alexandre Julliard julliard at winehq.org
Thu Dec 19 15:57:24 CST 2019


Jeff Smith <whydoubt at gmail.com> writes:

@@ -1426,8 +1426,14 @@ interface IAdviseSink : IUnknown default: wireHGLOBAL hGeneric; } GDIOBJECT;

+ /* Defining the STGMEDIUMUNION type yields a violation of the C spec when + * NONAMELESSUNION is not defined, so only define it for C++. */ _+ cppquote("#ifndef cplusplus") + cppquote("#define STGMEDIUMUNION") + cppquote("#endif")

You may want to make this conditional on NONAMELESSUNION then. This way there's an easy way to get the definition if necessary.

-- Alexandre Julliard julliard at winehq.org



More information about the wine-devel mailing list