Re: Resolving conflicting typedefs uint32
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