Differences From Artifact [02f8f90a87]:
- File src/OFBlock.m — part of check-in [3b97fc3cd9] at 2014-01-04 00:24:08 on branch trunk — Update copyright. (user: js, size: 11253) [annotate] [blame] [check-ins using]
To Artifact [aa21105e0f]:
- File
src/OFBlock.m
— part of check-in
[3204ceeca0]
at
2014-02-21 17:19:40
on branch trunk
— Don't use objc_initializeClassPair on OS X/PPC64
OS X/PPC64 is limited to 10.5 and thus it does not exist there, even
though __OBJC2__ is defined. (user: js, size: 11311) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
143 144 145 146 147 148 149 | const char *ivar_layout; struct class_ext *ext; }; struct class _NSConcreteStackBlock; struct class _NSConcreteGlobalBlock; struct class _NSConcreteMallocBlock; | | | 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 | const char *ivar_layout; struct class_ext *ext; }; struct class _NSConcreteStackBlock; struct class _NSConcreteGlobalBlock; struct class _NSConcreteMallocBlock; # if defined(__OBJC2__) && !defined(__ppc64__) struct class _NSConcreteStackBlock_metaclass; struct class _NSConcreteGlobalBlock_metaclass; struct class _NSConcreteMallocBlock_metaclass; # endif #endif static struct { |
︙ | ︙ | |||
325 326 327 328 329 330 331 | @throw [OFInitializationFailedException exceptionWithClass: self]; #endif #ifdef OF_APPLE_RUNTIME Class tmp; | | | 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 | @throw [OFInitializationFailedException exceptionWithClass: self]; #endif #ifdef OF_APPLE_RUNTIME Class tmp; # if defined(__OBJC2__) && !defined(__ppc64__) tmp = objc_initializeClassPair(self, "OFStackBlock", (Class)&_NSConcreteStackBlock, (Class)&_NSConcreteStackBlock_metaclass); if (tmp == Nil) @throw [OFInitializationFailedException exceptionWithClass: self]; objc_registerClassPair(tmp); |
︙ | ︙ |