blob: 1d81b413592a0fbfa10b24def5a8a5977f4857d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
// **********************************************************************
//
// Copyright (c) 2003-present ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Some import files we need almost everywhere
//
#import <Foundation/NSObject.h>
#import <Foundation/NSString.h>
#import <Foundation/NSArray.h>
#import <Foundation/NSDictionary.h>
#import <Foundation/NSData.h>
#import <Foundation/NSNull.h>
#import <stdlib.h>
//
// Use system headers as preferred way to detect 32 or 64 bit mode and
// fallback to architecture based checks
//
#include <stdint.h>
#if defined(__WORDSIZE) && (__WORDSIZE == 64)
# define ICE_64
#elif defined(__WORDSIZE) && (__WORDSIZE == 32)
# define ICE_32
#elif defined(__APPLE__) && (defined(__x86_64) || defined(__arm64))
# define ICE_64
#else
# define ICE_32
#endif
#define ICE_DEPRECATED_API(msg) __attribute__((deprecated(msg)))
#define ICE_DECLSPEC_EXPORT __attribute__((visibility ("default")))
#define ICE_DECLSPEC_IMPORT __attribute__((visibility ("default")))
#ifndef ICE_API
# if defined(ICE_STATIC_LIBS)
# define ICE_API /**/
# elif defined(ICE_API_EXPORTS)
# define ICE_API ICE_DECLSPEC_EXPORT
# else
# define ICE_API ICE_DECLSPEC_IMPORT
# endif
#endif
//
// Don't forget to update the conversion methods from Util.h if the types below
// are changed.
//
typedef unsigned char ICEByte;
typedef short ICEShort;
typedef int ICEInt;
#if defined(ICE_64)
typedef long ICELong;
#else
typedef long long ICELong;
#endif
typedef float ICEFloat;
typedef double ICEDouble;
#if defined(__clang__) && __has_feature(objc_arc)
# define ICE_STRONG_QUALIFIER __strong
# define ICE_AUTORELEASING_QUALIFIER __autoreleasing
# define ICE_STRONG_ATTR strong
# define ICE_AUTORELEASE(v) v
# define ICE_RETAIN(v) v
# define ICE_RELEASE(v)
#else
# define ICE_STRONG_QUALIFIER
# define ICE_AUTORELEASING_QUALIFIER
# define ICE_STRONG_ATTR retain
# define ICE_AUTORELEASE(v) [v autorelease]
# define ICE_RETAIN(v) [v retain]
# define ICE_RELEASE(v) [v release]
#endif
|