Skip to content

Commit

Permalink
#9 Identification MacOSX
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Mendonca committed Feb 20, 2018
1 parent 7885d21 commit 8faa797
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ private static IOciNativeCalls OciNativeCalls
{
if (mOciNativeCalls == default(IOciNativeCalls))
{
if ((int)Environment.OSVersion.Platform == 4 || (int)Environment.OSVersion.Platform == 128)
if (System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(System.Runtime.InteropServices.OSPlatform.Linux))
{
mOciNativeCalls = new OciNativeCallsLinux();
}
else if ((int)Environment.OSVersion.Platform == 6)
else if (System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(System.Runtime.InteropServices.OSPlatform.OSX))
{
mOciNativeCalls = new OciNativeCallsMacOSX();
}
Expand Down

0 comments on commit 8faa797

Please sign in to comment.