Re: Type redefinitions
Re: Type redefinitions
- Subject: Re: Type redefinitions
- From: Jeff Moore <email@hidden>
- Date: Mon, 03 Dec 2001 11:22:05 -0800
on 12/2/01 8:48 PM, Sean Morrell <email@hidden> wrote:
>
I am writing a HAL plugin. When I include the AudioDriverPlugIn.h header,
>
I get redefinition errors regarding types such as UInt8. This occurs even
>
when AudioDriverPlugIn.h is the only header included in my source. How
>
do I get around this problem? Do I need a define or undefine?
>
>
Note the plugin for the AppleOnboardAudio driver isn't implemented and has
>
the include statement for this header commented out.
It's a bug in the header.
In your copy of <CoreAudio/AudioHardwarePugIn.h>, change:
#include <CoreAudio/AudioHardware.h>
#include <IOKit/IOKitLib.h>
to:
#include <IOKit/IOKitLib.h>
#include <CoreAudio/AudioHardware.h>
And the problem should go away.
--
Jeff Moore
Core Audio
Apple