Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

Commit

Permalink
dotnet 3.5 compatibility: PlatformID.MacOSX was introduced for and sp…
Browse files Browse the repository at this point in the history
…ecific to Silverlight

Conflicts:
	Compat/Compat.cs
  • Loading branch information
HinTak committed Nov 18, 2018
1 parent 7ab3029 commit ec77b22
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Compat/Compat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit ec77b22

Please sign in to comment.