• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Type redefinitions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Type redefinitions (From: "Sean Morrell" <email@hidden>)

  • Prev by Date: Re: coreaudio-api digest, Vol 1 #146 - 10 msgs
  • Next by Date: Re: Type redefinitions
  • Previous by thread: Type redefinitions
  • Next by thread: Re: Type redefinitions
  • Index(es):
    • Date
    • Thread