[PATCH] include: Define the _STGMEDIUM_UNION type for C++ only.

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;
>    } GDI_OBJECT;
>  
> +  /* Defining the _STGMEDIUM_UNION type yields a violation of the C spec when
> +   * NONAMELESSUNION is not defined, so only define it for C++. */
> +  cpp_quote("#ifndef __cplusplus")
> +  cpp_quote("#define _STGMEDIUM_UNION")
> +  cpp_quote("#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