Re: [PATCH] winecoreaudio: Fix deprecation warnings.
Charles Davis <cdavis(a)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(a)winehq.org
participants (1)
-
Alexandre Julliard