fix platform detection in nativelibrary

This commit is contained in:
emmaus 2018-06-19 19:04:35 +00:00
parent cc02000e6d
commit 6cac24a9aa

View file

@ -62,7 +62,7 @@ namespace OpenTK
public static NativeLibrary Load(string libraryName) public static NativeLibrary Load(string libraryName)
{ {
#if NETCORE #if NETSTANDARD
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{ {
return new WindowsNativeLibrary(libraryName); return new WindowsNativeLibrary(libraryName);