@@ -20,16 +20,13 @@ extern "C" {
20
20
#define NS_REFINED_FOR_SWIFT __attribute__ ((swift_private))
21
21
#define UIKIT_EXTERN extern " C" __attribute__((visibility(" default" )))
22
22
23
- typedef unsigned long NSUInteger ;
24
- typedef long NSInteger ;
25
-
26
- typedef NS_OPTIONS (NSUInteger , NSBinarySearchingOptions ) {
23
+ typedef NS_OPTIONS (unsigned long , NSBinarySearchingOptions ) {
27
24
NSBinarySearchingFirstEqual = (1UL << 8 ),
28
25
NSBinarySearchingLastEqual = (1UL << 9 ),
29
26
NSBinarySearchingInsertionIndex = (1UL << 10 ),
30
27
};
31
28
32
- typedef NS_OPTIONS (NSUInteger , NSAttributedStringFormattingOptions) {
29
+ typedef NS_OPTIONS (unsigned long , NSAttributedStringFormattingOptions) {
33
30
NSAttributedStringFormattingInsertArgumentAttributesWithoutMerging = 1 << 0 ,
34
31
NSAttributedStringFormattingApplyReplacementIndexAttribute = 1 << 1 ,
35
32
} NS_REFINED_FOR_SWIFT;
@@ -45,7 +42,7 @@ typedef NS_OPTIONS(NSUInteger, NSAttributedStringFormattingOptions) {
45
42
UIKIT_EXTERN
46
43
@interface UIPrinter
47
44
48
- typedef NS_OPTIONS (NSInteger , UIPrinterJobTypes) {
45
+ typedef NS_OPTIONS (long , UIPrinterJobTypes) {
49
46
UIPrinterJobTypeUnknown = 0 ,
50
47
UIPrinterJobTypeDocument = 1 << 0 ,
51
48
UIPrinterJobTypeEnvelope = 1 << 1 ,
@@ -60,7 +57,7 @@ typedef NS_OPTIONS(NSInteger, UIPrinterJobTypes) {
60
57
@end
61
58
}
62
59
63
- typedef NS_OPTIONS (NSUInteger , Foo) {
60
+ typedef NS_OPTIONS (unsigned long , Foo) {
64
61
NS_SWIFT_NAMED_OptionOne __attribute__ ((swift_name (" SwiftOptionOne" ))) = 0 ,
65
62
NS_SWIFT_NAMED_OptionTwo __attribute__ ((swift_name (" SwiftOptionTwo" ))) = 1
66
63
<< 0 ,
@@ -71,15 +68,15 @@ typedef NS_OPTIONS(NSUInteger, Foo) {
71
68
NS_SWIFT_NAMED_OptionTwo
72
69
};
73
70
74
- typedef NS_OPTIONS (NSUInteger , Bar) {
71
+ typedef NS_OPTIONS (unsigned long , Bar) {
75
72
API_NOTES_NAMED_OptionOne = 0 ,
76
73
API_NOTES_NAMED_OptionTwo = 1 << 0 ,
77
74
API_NOTES_NAMED_OptionThree = 1 << 1 ,
78
75
API_NOTES_NAMED_OptionFour = API_NOTES_NAMED_OptionOne |
79
76
API_NOTES_NAMED_OptionTwo
80
77
};
81
78
82
- typedef NS_OPTIONS (NSUInteger , Baz) { Baz1, Baz2 };
79
+ typedef NS_OPTIONS (unsigned long , Baz) { Baz1, Baz2 };
83
80
84
81
struct HasNSOptionField {
85
82
Bar bar;
0 commit comments