-
Notifications
You must be signed in to change notification settings - Fork 0
/
MGLKitPlatform.h
33 lines (24 loc) · 1.05 KB
/
MGLKitPlatform.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//
// Copyright 2020 Le Hoang Quyen. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
#ifndef MGLKitPlatform_h
#define MGLKitPlatform_h
#include <TargetConditionals.h>
#if TARGET_OS_IOS || TARGET_OS_MACCATALYST || TARGET_OS_TV
# include <UIKit/UIKit.h>
@compatibility_alias MGLKNativeView UIView;
@compatibility_alias MGLKNativeViewController UIViewController;
# define MGLKApplicationWillResignActiveNotification UIApplicationWillResignActiveNotification
# define MGLKApplicationDidBecomeActiveNotification UIApplicationDidBecomeActiveNotification
#elif TARGET_OS_OSX
# include <Cocoa/Cocoa.h>
@compatibility_alias MGLKNativeView NSView;
@compatibility_alias MGLKNativeViewController NSViewController;
# define MGLKApplicationWillResignActiveNotification NSApplicationWillResignActiveNotification
# define MGLKApplicationDidBecomeActiveNotification NSApplicationDidBecomeActiveNotification
#else
# error "Unsupported platform"
#endif
#endif /* MGLKitPlatform_h */