summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLFoundation.h
diff options
context:
space:
mode:
authorJulian Rex <julian.rex@gmail.com>2018-11-21 13:56:41 -0500
committerGitHub <noreply@github.com>2018-11-21 13:56:41 -0500
commitfd4b4701587c90271978b5f24d9a9355989182e0 (patch)
tree676ad30cd48e87b3aa53aceab3cfd5973ce82a38 /platform/darwin/src/MGLFoundation.h
parent7d5be980e287c979119b06c73d071f2daaea1b3d (diff)
downloadqtlocation-mapboxgl-fd4b4701587c90271978b5f24d9a9355989182e0.tar.gz
[ios] Adds support for MGLCollisionBehaviorPre4_0 in NSUserDefaults (#13426)
Diffstat (limited to 'platform/darwin/src/MGLFoundation.h')
-rw-r--r--platform/darwin/src/MGLFoundation.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/platform/darwin/src/MGLFoundation.h b/platform/darwin/src/MGLFoundation.h
index be86bb92f9..3400c63979 100644
--- a/platform/darwin/src/MGLFoundation.h
+++ b/platform/darwin/src/MGLFoundation.h
@@ -3,10 +3,3 @@
#import <Foundation/Foundation.h>
#define MGL_EXPORT __attribute__((visibility ("default")))
-
-/* Using a compound statement (GNU Extension, supported by clang) */
-#define MGL_OBJC_DYNAMIC_CAST(object, type) \
- ({ \
- __typeof__( object ) temp##__LINE__ = (object); \
- (type *)([temp##__LINE__ isKindOfClass:[type class]] ? temp##__LINE__ : nil); \
- })