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:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden