Re: Mac OS X version at compile-time
Re: Mac OS X version at compile-time
- Subject: Re: Mac OS X version at compile-time
- From: Finlay Dobbie <email@hidden>
- Date: Wed, 6 Oct 2004 23:30:20 +0100
On 6 Oct 2004, at 23:23, Peter Lovell wrote:
Does anyone know of a convenient way to determine at compile-time (C
preprocessor time, actually) which version of headers are being used?
I know there are macros in "AvailabilityMacros.h" but that's not
applicable to the problem I have.
...
In early versions, there is not typedef for "socklen_t".
...
So, is there a #define somewhere which I can test?? Or a more
appropriate solution?
Generally it's considered better practice to test for exactly the
functionliaty that you require. Does your project have a configure
script? If so, you could make that check of socklen_t is defined, and
conditionally typedef it if needs be.
-- Finlay
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden