Re: Mac OS X version at compile-time
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On 6 Oct 2004, at 23:23, Peter Lovell wrote: -- Finlay _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... 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. This email sent to site_archiver@lists.apple.com
participants (1)
-
Finlay Dobbie