summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2015-06-13 19:58:59 -0700
committerMinh Nguyễn <mxn@1ec5.org>2015-06-13 19:58:59 -0700
commit450a6beae058f80db68019d8f7afe9ac50fe7559 (patch)
treed86e78445f2caf533bf0d63203772f9296e1da56 /include
parent4176d21d1c1fd82db5e73c45cfd405ef98236f1f (diff)
downloadqtlocation-mapboxgl-450a6beae058f80db68019d8f7afe9ac50fe7559.tar.gz
Restored nullability compatibility shim
This reverts commit a425df0f95f5f0088444b8ebc67708756ff962aa for compatibility with Xcode 6.1.
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/ios/MGLTypes.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/mbgl/ios/MGLTypes.h b/include/mbgl/ios/MGLTypes.h
index a4fe707802..6b56b47add 100644
--- a/include/mbgl/ios/MGLTypes.h
+++ b/include/mbgl/ios/MGLTypes.h
@@ -1,5 +1,13 @@
#import <Foundation/Foundation.h>
+#if !__has_feature(nullability)
+ #define NS_ASSUME_NONNULL_BEGIN
+ #define NS_ASSUME_NONNULL_END
+ #define nullable
+ #define nonnull
+ #define null_resettable
+#endif
+
NS_ASSUME_NONNULL_BEGIN
extern NSString * const MGLErrorDomain;