Re: Restructure WINE_WAVEOUT/WINE_WAVEIN

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: Restructure WINE_WAVEOUT/WINE_WAVEIN

Alexandre Julliard
Jeremy White <[hidden email]> writes:

> @@ -228,12 +205,20 @@
>  
>      /* DirectSound stuff */
>      DSDRIVERDESC                ds_desc;
> -    DSCDRIVERCAPS               ds_caps;
> -} WINE_WAVEIN;
> +    DSDRIVERCAPS                ds_caps;
> +
> +    union {
> +        WINE_WAVEOUT    out;
> +        WINE_WAVEIN     in;
> +    };

You need to give a name to the union, anonymous unions are not
portable. Though considering how few fields remain in the in/out
structure you might just as well merge them into the common structure
and use a single structure for everything.

--
Alexandre Julliard
[hidden email]