[ipv6hackers] Definition of "struct ip6_opt" in Mac OS
Fernando Gont
fgont at si6networks.com
Fri Jul 20 02:26:01 CEST 2012
On 07/19/2012 09:24 PM, Adrian Bool wrote:
> There is a /usr/include/Availability.h file which includes,
>
> #define __MAC_10_0 1000
> #define __MAC_10_1 1010
> #define __MAC_10_2 1020
> #define __MAC_10_3 1030
> #define __MAC_10_4 1040
> #define __MAC_10_5 1050
> #define __MAC_10_6 1060
> #define __MAC_10_7 1070
> #define __MAC_NA 9999 /* not available */
>
>
> If you've got 10.6 headers installed; then I'd imagine the __MAC_10_7
> contact would be undefined… Perhaps a good enough handle to make a choice?
I assume I'd have to include this file myself before checking the
relevant constants, right?
That aside, some Google'ing revealed that (apparently) there's the
"__APPLE_CC__" constant, which specifies the xcode version:
Xcode 3.0 5465
Xcode 3.1 5470
Xcode 3.1 (GCC 4.2) 5553
Xcode 3.2.3 5664 (Got this value from my own compiler)
(source:
<http://stackoverflow.com/questions/3592805/detecting-compiler-versions-during-compile-time>)
Can anyone double-check this?
Thanks!
Best regards,
--
Fernando Gont
SI6 Networks
e-mail: fgont at si6networks.com
PGP Fingerprint: 6666 31C6 D484 63B2 8FB1 E3C4 AE25 0D55 1D4E 7492
More information about the Ipv6hackers
mailing list