[PATCH] winecoreaudio: Fix deprecation warnings.
Alexandre Julliard
julliard at winehq.org
Fri Jan 28 05:50:37 CST 2011
Charles Davis <cdavis at mymail.mines.edu> writes:
> @@ -198,10 +222,19 @@ int AudioUnit_CreateInputUnit(void* wwi, AudioUnit* out_au,
> UInt32* outFrameCount)
> {
> OSStatus err = noErr;
> +#ifdef HAVE_AUDIOUNIT_AUDIOCOMPONENT_H
> + /* Apple has threatened to rip out the Component Manager.
> + * Protect ourselves from that.
> + */
> + AudioComponentDescription description;
> + AudioComponent component;
> +#else
> ComponentDescription description;
> Component component;
> +#endif
It would be better to have a set of compatibility defines at the top
instead of spreading #ifdefs all through the code. And please split
independent changes into separate patches.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list