Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: default defines in Xcode projects?



On 3/26/2007 1:19 PM, "Mark Modrall" <email@hidden> wrote:

> I'm looking to build the carbon build of Nethack and my problem is
> that I'm stuck between the very old and the new (ish).  I've got
> CodeWarrior 5 on an old powerbook g3 and I've got an ibook g4 running
> 10.4.9 with Xcode.
> 
> I got the latest sources, and either Metrowerks changed some of the
> default processor defines between 5 and the end of it's life (the
> last working build I had hinged on the expected define of "applec"
> while the newest codebase is expecting "macintosh" to be defined and
> it isn't in CW 5).
> 
> I'm thinking of trying to compile with Xcode on the ibook but I
> really have no idea what the default defines are in that
> environment.  Are there any?

I did a google search and I saw "applec" in this link:

<http://www.worldserver.com/turk/opensource/ToFromIEEE.c.txt>

So looks like it was used at one point but probably long time ago...

Most of the macro's are defined in ConditionalMacros.h.

Interesting enough, I use Spotlight on my machine and found an old
ConditionalMacros.h from QuickTime 4 SDK that has used both "applec" and
"macintosh".  So, I guess you need to understand how those defines are being
use and updated them to the latest ones from ConditionalMacros.h...

Or create your own defines and conditionally match to what's in the header
files in use:

#if UNIVERSAL_INTERFACES_VERSION == 0x0400

#define my_applec   "whatever..."

#if UNIVERSAL_INTERFACES_VERSION == 0x0320

#define my_applec   applec

HTH.

pete


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

References: 
 >default defines in Xcode projects? (From: Mark Modrall <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.