@@ -20,16 +20,13 @@ extern "C" {
2020#define NS_REFINED_FOR_SWIFT __attribute__ ((swift_private))
2121#define UIKIT_EXTERN extern " C" __attribute__((visibility(" default" )))
2222
23- typedef unsigned long NSUInteger ;
24- typedef long NSInteger ;
25-
26- typedef NS_OPTIONS (NSUInteger , NSBinarySearchingOptions ) {
23+ typedef NS_OPTIONS (unsigned long , NSBinarySearchingOptions ) {
2724 NSBinarySearchingFirstEqual = (1UL << 8 ),
2825 NSBinarySearchingLastEqual = (1UL << 9 ),
2926 NSBinarySearchingInsertionIndex = (1UL << 10 ),
3027};
3128
32- typedef NS_OPTIONS (NSUInteger , NSAttributedStringFormattingOptions) {
29+ typedef NS_OPTIONS (unsigned long , NSAttributedStringFormattingOptions) {
3330 NSAttributedStringFormattingInsertArgumentAttributesWithoutMerging = 1 << 0 ,
3431 NSAttributedStringFormattingApplyReplacementIndexAttribute = 1 << 1 ,
3532} NS_REFINED_FOR_SWIFT;
@@ -45,7 +42,7 @@ typedef NS_OPTIONS(NSUInteger, NSAttributedStringFormattingOptions) {
4542UIKIT_EXTERN
4643@interface UIPrinter
4744
48- typedef NS_OPTIONS (NSInteger , UIPrinterJobTypes) {
45+ typedef NS_OPTIONS (long , UIPrinterJobTypes) {
4946 UIPrinterJobTypeUnknown = 0 ,
5047 UIPrinterJobTypeDocument = 1 << 0 ,
5148 UIPrinterJobTypeEnvelope = 1 << 1 ,
@@ -60,7 +57,7 @@ typedef NS_OPTIONS(NSInteger, UIPrinterJobTypes) {
6057@end
6158}
6259
63- typedef NS_OPTIONS (NSUInteger , Foo) {
60+ typedef NS_OPTIONS (unsigned long , Foo) {
6461 NS_SWIFT_NAMED_OptionOne __attribute__ ((swift_name (" SwiftOptionOne" ))) = 0 ,
6562 NS_SWIFT_NAMED_OptionTwo __attribute__ ((swift_name (" SwiftOptionTwo" ))) = 1
6663 << 0 ,
@@ -71,15 +68,15 @@ typedef NS_OPTIONS(NSUInteger, Foo) {
7168 NS_SWIFT_NAMED_OptionTwo
7269};
7370
74- typedef NS_OPTIONS (NSUInteger , Bar) {
71+ typedef NS_OPTIONS (unsigned long , Bar) {
7572 API_NOTES_NAMED_OptionOne = 0 ,
7673 API_NOTES_NAMED_OptionTwo = 1 << 0 ,
7774 API_NOTES_NAMED_OptionThree = 1 << 1 ,
7875 API_NOTES_NAMED_OptionFour = API_NOTES_NAMED_OptionOne |
7976 API_NOTES_NAMED_OptionTwo
8077};
8178
82- typedef NS_OPTIONS (NSUInteger , Baz) { Baz1, Baz2 };
79+ typedef NS_OPTIONS (unsigned long , Baz) { Baz1, Baz2 };
8380
8481struct HasNSOptionField {
8582 Bar bar;
0 commit comments