mirror of
https://github.com/darlinghq/darling-objc4.git
synced 2024-12-02 09:16:28 +00:00
34 lines
737 B
C
34 lines
737 B
C
/* NSObjCRuntime.h
|
|
Copyright (c) 1994-2012, Apple Inc. All rights reserved.
|
|
*/
|
|
|
|
#ifndef _OBJC_NSOBJCRUNTIME_H_
|
|
#define _OBJC_NSOBJCRUNTIME_H_
|
|
|
|
#include <TargetConditionals.h>
|
|
#include <objc/objc.h>
|
|
|
|
#if __LP64__ || TARGET_OS_WIN32 || NS_BUILD_32_LIKE_64
|
|
typedef long NSInteger;
|
|
typedef unsigned long NSUInteger;
|
|
#else
|
|
typedef int NSInteger;
|
|
typedef unsigned int NSUInteger;
|
|
#endif
|
|
|
|
#define NSIntegerMax LONG_MAX
|
|
#define NSIntegerMin LONG_MIN
|
|
#define NSUIntegerMax ULONG_MAX
|
|
|
|
#define NSINTEGER_DEFINED 1
|
|
|
|
#ifndef NS_DESIGNATED_INITIALIZER
|
|
#if __has_attribute(objc_designated_initializer)
|
|
#define NS_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
|
|
#else
|
|
#define NS_DESIGNATED_INITIALIZER
|
|
#endif
|
|
#endif
|
|
|
|
#endif
|