diff options
author | Jason Wray <jason@mapbox.com> | 2018-07-24 18:08:12 -0400 |
---|---|---|
committer | Jason Wray <jason@mapbox.com> | 2018-07-24 18:14:32 -0400 |
commit | cdd35536417fe16cc60e225f1bd7462f4242e795 (patch) | |
tree | 72567b594f8138d778b52aae961c3f55417819d5 /platform/ios/src | |
parent | 14dc94e65fc5e549b5bdc8a9138d5d3512b469be (diff) | |
download | qtlocation-mapboxgl-cdd35536417fe16cc60e225f1bd7462f4242e795.tar.gz |
[darwin] Use FOUNDATION_EXTERN instead of plain extern
FOUNDATION_EXTERN is an alias for extern in most cases, but also covers us in the event that a method could be mismangled by the compiler as C++ (when we want C-style mangling, for Obj-C compatibility).
Diffstat (limited to 'platform/ios/src')
-rw-r--r-- | platform/ios/src/MGLMapView.h | 6 | ||||
-rw-r--r-- | platform/ios/src/MGLMapView_Private.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/platform/ios/src/MGLMapView.h b/platform/ios/src/MGLMapView.h index b2439416ae..bfd0946cdc 100644 --- a/platform/ios/src/MGLMapView.h +++ b/platform/ios/src/MGLMapView.h @@ -24,13 +24,13 @@ NS_ASSUME_NONNULL_BEGIN @protocol MGLLocationManager; /** The default deceleration rate for a map view. */ -extern MGL_EXPORT const CGFloat MGLMapViewDecelerationRateNormal; +FOUNDATION_EXTERN MGL_EXPORT const CGFloat MGLMapViewDecelerationRateNormal; /** A fast deceleration rate for a map view. */ -extern MGL_EXPORT const CGFloat MGLMapViewDecelerationRateFast; +FOUNDATION_EXTERN MGL_EXPORT const CGFloat MGLMapViewDecelerationRateFast; /** Disables deceleration in a map view. */ -extern MGL_EXPORT const CGFloat MGLMapViewDecelerationRateImmediate; +FOUNDATION_EXTERN MGL_EXPORT const CGFloat MGLMapViewDecelerationRateImmediate; /** The vertical alignment of an annotation within a map view. Used with diff --git a/platform/ios/src/MGLMapView_Private.h b/platform/ios/src/MGLMapView_Private.h index 482ab55c5e..133d17023e 100644 --- a/platform/ios/src/MGLMapView_Private.h +++ b/platform/ios/src/MGLMapView_Private.h @@ -6,7 +6,7 @@ namespace mbgl { } /// Minimum size of an annotation’s accessibility element. -extern const CGSize MGLAnnotationAccessibilityElementMinimumSize; +FOUNDATION_EXTERN const CGSize MGLAnnotationAccessibilityElementMinimumSize; @interface MGLMapView (Private) |