summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLFoundation.mm
diff options
context:
space:
mode:
Diffstat (limited to 'platform/darwin/src/MGLFoundation.mm')
-rw-r--r--platform/darwin/src/MGLFoundation.mm4
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/darwin/src/MGLFoundation.mm b/platform/darwin/src/MGLFoundation.mm
index 1cc56de298..5cda1dced3 100644
--- a/platform/darwin/src/MGLFoundation.mm
+++ b/platform/darwin/src/MGLFoundation.mm
@@ -1,4 +1,6 @@
#import "MGLFoundation_Private.h"
/// Initializes the run loop shim that lives on the main thread.
-mbgl::util::RunLoop mgl_runLoop;
+void MGLInitializeRunLoop() {
+ static mbgl::util::RunLoop runLoop;
+}