• 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: Resolving conflicting typedefs uint32
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Resolving conflicting typedefs uint32


  • Subject: Re: Resolving conflicting typedefs uint32
  • From: Peter O'Gorman <email@hidden>
  • Date: Tue, 15 Jul 2008 01:47:20 -0500

email@hidden wrote:
> Hi
>
> I'm trying to convert a Quark XTension from Tiger  to Leopard but am getting a conflicting typedef error for uint32
>
> /Volumes/PageManager Dev/PageManager XT/../XTHeaders/XP_XTplatE7.h:244: error: conflicting declaration 'typedef long unsigned int uint32'
> /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Security.framework/Headers/cssmconfig.h:64: error: 'uint32' has a previous declaration as 'typedef uint32_t uint32'
>
> In the Quark SDK uint32 is defined as
> typedef unsigned long uint32;
>
> While in the Apple security framework it is defined as
> #ifndef _UINT32
> typedef uint32_t uint32;
> #define _UINT32
>
> I tried doing an #undef uint32 in the prefix file (which worked for several macro conflicts) but it doesn't seem to work on the uint32 typedef. Is there any way I can resolve this without hacking the Quark header file and possibly wreaking havoc on the library calls?

#define _UINT32

Somewhere before the security framework headers are included should
work. Note that unsigned long is not correct for a uint32 in a 64 bit
environment.

Peter
--
Peter O'Gorman
http://pogma.com
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Resolving conflicting typedefs uint32 (From: email@hidden)

  • Prev by Date: Re: Xcode project has lost track of file modification
  • Next by Date: Re: Xcode project has lost track of file modification
  • Previous by thread: Resolving conflicting typedefs uint32
  • Next by thread: Behavior when Host and Plugin link to different SDKS? Was: Resolving conflicting typedefs uint32
  • Index(es):
    • Date
    • Thread