summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Maps.iOS/FormsMaps.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Maps.iOS/FormsMaps.cs')
-rw-r--r--Xamarin.Forms.Maps.iOS/FormsMaps.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/Xamarin.Forms.Maps.iOS/FormsMaps.cs b/Xamarin.Forms.Maps.iOS/FormsMaps.cs
index a87cb8d..0f5df42 100644
--- a/Xamarin.Forms.Maps.iOS/FormsMaps.cs
+++ b/Xamarin.Forms.Maps.iOS/FormsMaps.cs
@@ -1,11 +1,16 @@
+#if __MOBILE__
using UIKit;
using Xamarin.Forms.Maps.iOS;
+#else
+using Xamarin.Forms.Maps.MacOS;
+#endif
namespace Xamarin
{
public static class FormsMaps
{
static bool s_isInitialized;
+#if __MOBILE__
static bool? s_isiOs8OrNewer;
static bool? s_isiOs9OrNewer;
static bool? s_isiOs10OrNewer;
@@ -39,7 +44,7 @@ namespace Xamarin
return s_isiOs10OrNewer.Value;
}
}
-
+#endif
public static void Init()
{
if (s_isInitialized)