| 1 | /*	NSObjCRuntime.h |
| 2 | 	Copyright (c) 1994-2012, Apple Inc. All rights reserved. |
| 3 | */ |
| 4 | |
| 5 | #ifndef _OBJC_NSOBJCRUNTIME_H_ |
| 6 | #define _OBJC_NSOBJCRUNTIME_H_ |
| 7 | |
| 8 | #include <TargetConditionals.h> |
| 9 | #include <limits.h> |
| 10 | #include <objc/objc.h> |
| 11 | |
| 12 | #if __LP64__ || NS_BUILD_32_LIKE_64 |
| 13 | typedef long NSInteger; |
| 14 | typedef unsigned long NSUInteger; |
| 15 | #else |
| 16 | typedef int NSInteger; |
| 17 | typedef unsigned int NSUInteger; |
| 18 | #endif |
| 19 | |
| 20 | #define NSIntegerMax LONG_MAX |
| 21 | #define NSIntegerMin LONG_MIN |
| 22 | #define NSUIntegerMax ULONG_MAX |
| 23 | |
| 24 | #define NSINTEGER_DEFINED 1 |
| 25 | |
| 26 | #ifndef NS_DESIGNATED_INITIALIZER |
| 27 | #if __has_attribute(objc_designated_initializer) |
| 28 | #define NS_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) |
| 29 | #else |
| 30 | #define NS_DESIGNATED_INITIALIZER |
| 31 | #endif |
| 32 | #endif |
| 33 | |
| 34 | #endif |