fix platform detection in nativelibrary

This commit is contained in:
emmaus 2018-06-19 19:04:35 +00:00
parent 92530a7544
commit 8780e5f3aa

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);