1- // Generated by Apple Swift version 4 .1 effective-3.3 (swiftlang-902 .0.48 clang-902 .0.37.1 )
1+ // Generated by Apple Swift version 3 .1 (swiftlang-802 .0.53 clang-802 .0.42 )
22#pragma clang diagnostic push
3- #pragma clang diagnostic ignored "-Wgcc-compat"
43
5- #if !defined(__has_include )
6- # define __has_include (x ) 0
7- #endif
8- #if !defined(__has_attribute )
9- # define __has_attribute (x ) 0
10- #endif
11- #if !defined(__has_feature )
12- # define __has_feature (x ) 0
13- #endif
14- #if !defined(__has_warning )
15- # define __has_warning (x ) 0
16- #endif
17-
18- #if __has_include (< swift /objc - prologue .h > )
4+ #if defined(__has_include ) && __has_include (< swift /objc - prologue .h > )
195# include <swift/objc-prologue.h>
206#endif
217
2713
2814#if !defined(SWIFT_TYPEDEFS )
2915# define SWIFT_TYPEDEFS 1
30- # if __has_include (< uchar .h > )
16+ # if defined( __has_include ) && __has_include (< uchar .h > )
3117# include < uchar .h >
32- # elif !defined(__cplusplus )
18+ # elif !defined(__cplusplus ) || __cplusplus < 201103L
3319typedef uint_least16_t char16_t ;
3420typedef uint_least32_t char32_t ;
3521# endif
@@ -62,36 +48,31 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
6248# endif
6349#endif
6450
65- #if __has_attribute (objc_runtime_name )
51+ #if defined( __has_attribute ) && __has_attribute (objc_runtime_name )
6652# define SWIFT_RUNTIME_NAME (X ) __attribute__((objc_runtime_name(X)))
6753#else
6854# define SWIFT_RUNTIME_NAME (X )
6955#endif
70- #if __has_attribute (swift_name )
56+ #if defined( __has_attribute ) && __has_attribute (swift_name )
7157# define SWIFT_COMPILE_NAME (X ) __attribute__((swift_name(X)))
7258#else
7359# define SWIFT_COMPILE_NAME (X )
7460#endif
75- #if __has_attribute (objc_method_family )
61+ #if defined( __has_attribute ) && __has_attribute (objc_method_family )
7662# define SWIFT_METHOD_FAMILY (X ) __attribute__((objc_method_family(X)))
7763#else
7864# define SWIFT_METHOD_FAMILY (X )
7965#endif
80- #if __has_attribute (noescape )
66+ #if defined( __has_attribute ) && __has_attribute (noescape )
8167# define SWIFT_NOESCAPE __attribute__((noescape))
8268#else
8369# define SWIFT_NOESCAPE
8470#endif
85- #if __has_attribute (warn_unused_result )
71+ #if defined( __has_attribute ) && __has_attribute (warn_unused_result )
8672# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
8773#else
8874# define SWIFT_WARN_UNUSED_RESULT
8975#endif
90- #if __has_attribute (noreturn )
91- # define SWIFT_NORETURN __attribute__((noreturn))
92- #else
93- # define SWIFT_NORETURN
94- #endif
9576#if !defined(SWIFT_CLASS_EXTRA )
9677# define SWIFT_CLASS_EXTRA
9778#endif
@@ -102,7 +83,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
10283# define SWIFT_ENUM_EXTRA
10384#endif
10485#if !defined(SWIFT_CLASS )
105- # if __has_attribute (objc_subclassing_restricted )
86+ # if defined( __has_attribute ) && __has_attribute (objc_subclassing_restricted )
10687# define SWIFT_CLASS (SWIFT_NAME ) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
10788# define SWIFT_CLASS_NAMED (SWIFT_NAME ) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
10889# else
@@ -121,23 +102,16 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
121102#endif
122103
123104#if !defined(OBJC_DESIGNATED_INITIALIZER )
124- # if __has_attribute (objc_designated_initializer )
105+ # if defined( __has_attribute ) && __has_attribute (objc_designated_initializer )
125106# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
126107# else
127108# define OBJC_DESIGNATED_INITIALIZER
128109# endif
129110#endif
130- #if !defined(SWIFT_ENUM_ATTR )
131- # if defined(__has_attribute ) && __has_attribute (enum_extensibility )
132- # define SWIFT_ENUM_ATTR __attribute__((enum_extensibility(open)))
133- # else
134- # define SWIFT_ENUM_ATTR
135- # endif
136- #endif
137111#if !defined(SWIFT_ENUM )
138- # define SWIFT_ENUM (_type , _name ) enum _name : _type _name; enum SWIFT_ENUM_ATTR SWIFT_ENUM_EXTRA _name : _type
139- # if __has_feature (generalized_swift_name )
140- # define SWIFT_ENUM_NAMED (_type , _name , SWIFT_NAME ) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR SWIFT_ENUM_EXTRA _name : _type
112+ # define SWIFT_ENUM (_type , _name ) enum _name : _type _name; enum SWIFT_ENUM_EXTRA _name : _type
113+ # if defined( __has_feature ) && __has_feature (generalized_swift_name )
114+ # define SWIFT_ENUM_NAMED (_type , _name , SWIFT_NAME ) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_EXTRA _name : _type
141115# else
142116# define SWIFT_ENUM_NAMED (_type , _name , SWIFT_NAME ) SWIFT_ENUM(_type, _name)
143117# endif
@@ -157,30 +131,9 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
157131#if !defined(SWIFT_DEPRECATED_MSG )
158132# define SWIFT_DEPRECATED_MSG (...) __attribute__((deprecated(__VA_ARGS__)))
159133#endif
160- #if __has_feature (attribute_diagnose_if_objc )
161- # define SWIFT_DEPRECATED_OBJC (Msg ) __attribute__((diagnose_if(1, Msg, "warning")))
162- #else
163- # define SWIFT_DEPRECATED_OBJC (Msg ) SWIFT_DEPRECATED_MSG(Msg)
164- #endif
165- #if __has_feature (modules )
134+ #if defined(__has_feature ) && __has_feature (modules )
166135#endif
167136
168137#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
169138#pragma clang diagnostic ignored "-Wduplicate-method-arg"
170- #if __has_warning ("- Wpragma - clang - attribute ")
171- # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
172- #endif
173- #pragma clang diagnostic ignored "-Wunknown-pragmas"
174- #pragma clang diagnostic ignored "-Wnullability"
175-
176- #if __has_attribute (external_source_symbol )
177- # pragma push_macro("any")
178- # undef any
179- # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="OHHTTPStubs",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
180- # pragma pop_macro("any")
181- #endif
182-
183- #if __has_attribute (external_source_symbol )
184- # pragma clang attribute pop
185- #endif
186139#pragma clang diagnostic pop
0 commit comments