site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=t3qnqyUhsvS0sXajpFb9z0jaR0uzaiSKZ07M4Giz4YdAThZkCz3tcfNQratysedOMwS/bLzPmbRDIMcmoq0EcrfrIYWtx1obxtxtbtYrGxQfKi+JCMAdU3r9jV4RZF6F0z5FfH5fp0foWG0Z3Zv1/wgUdwv0jPMvQXrM+R0HAUQ= I was poking around in Core Foundation for unrelated reasons and came across the following code in CFRuntime.h [1] in the 10.4.3 version of things (CF-368.18). typedef struct __CFRuntimeBase { void *_isa; #if defined(__ppc__) || defined(__ppc64__) uint16_t _rc; uint16_t _info; #elif defined(__i386__) uint16_t _info; uint16_t _rc; #else #error unknown architecture #endif } CFRuntimeBase; #if defined(__ppc__) || defined(__ppc64__) #define INIT_CFRUNTIME_BASE(isa, info, rc) { isa, info, rc } #elif defined(__i386__) #define INIT_CFRUNTIME_BASE(isa, info, rc) { isa, rc, info } #else #error unknown architecture #endif It looks like an endian specific compile time check... if so I believe it is better to check for __BIG_ENDIAN__ (and possibly also __LITTLE_ENDIAN__) in the above instead of checking processor type macros. If others agree I will file a defect. -Shawn [1] <http://darwinsource.opendarwin.org/10.4.3/CF-368.18/Base.subproj/CFRuntime.h> _______________________________________________ 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... This email sent to site_archiver@lists.apple.com