• 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: crossplatform C++, #ifdef
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: crossplatform C++, #ifdef


  • Subject: Re: crossplatform C++, #ifdef
  • From: Matthew Farrellee <email@hidden>
  • Date: Sun, 14 Nov 2004 11:12:22 -0600

On Nov 14, 2004, at 10:59 AM, Finlay Dobbie wrote:

On 14 Nov 2004, at 16:38, Matthew Farrellee wrote:

A "correct" way would probably be to use uname and define your own platform identifying macros.

But uname returns Darwin on both Darwin and OS X. The former doesn't have Carbon ;-)

Well, detecting platform and libraries are different issues. You can use uname to detect the platform, to detect libraries you should look into using autoconf and other techniques.



Will TARGET_CARBON work? (You might need to define it yourself or something).

Maybe someone from Apple will comment on this.



matt

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: crossplatform C++, #ifdef
      • From: Finlay Dobbie <email@hidden>
References: 
 >Re: crossplatform C++, #ifdef (From: Eric Forget <email@hidden>)
 >Re: crossplatform C++, #ifdef (From: Jean-Francois Roy <email@hidden>)
 >Re: crossplatform C++, #ifdef (From: Phillip Mills <email@hidden>)
 >Re: crossplatform C++, #ifdef (From: Finlay Dobbie <email@hidden>)
 >Re: crossplatform C++, #ifdef (From: Matthew Farrellee <email@hidden>)
 >Re: crossplatform C++, #ifdef (From: Finlay Dobbie <email@hidden>)
 >Re: crossplatform C++, #ifdef (From: Matthew Farrellee <email@hidden>)
 >Re: crossplatform C++, #ifdef (From: Finlay Dobbie <email@hidden>)

  • Prev by Date: Re: crossplatform C++, #ifdef
  • Next by Date: Re: crossplatform C++, #ifdef
  • Previous by thread: Re: crossplatform C++, #ifdef
  • Next by thread: Re: crossplatform C++, #ifdef
  • Index(es):
    • Date
    • Thread