From ec77b225e9da547b4facdad5594ab980a49478ce Mon Sep 17 00:00:00 2001 From: Hin-Tak Leung Date: Fri, 16 Nov 2018 23:42:17 +0000 Subject: [PATCH] dotnet 3.5 compatibility: PlatformID.MacOSX was introduced for and specific to Silverlight Conflicts: Compat/Compat.cs --- Compat/Compat.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Compat/Compat.cs b/Compat/Compat.cs index 51dcce6..fbb6434 100644 --- a/Compat/Compat.cs +++ b/Compat/Compat.cs @@ -63,7 +63,11 @@ public delegate int diagnostics_Function(IntPtr face_handle, int messcode, strin private RasterInterf () { PlatformID pid = Environment.OSVersion.Platform; +#if __MonoCS__ if ( pid != PlatformID.Unix && pid != PlatformID.MacOSX ) +#else + if ( pid != PlatformID.Unix ) +#endif { string path = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location); path = Path.Combine(path, IntPtr.Size == 8 ? "Win64" : "Win32");