Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit fd722f7

Browse files
committed
fix SL5 build error
1 parent 9e27954 commit fd722f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ServiceStack.Text/Env.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ static Env()
5757
IsWindows = System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(System.Runtime.InteropServices.OSPlatform.Windows);
5858
IsOSX = System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(System.Runtime.InteropServices.OSPlatform.OSX);
5959
IsUnix = IsOSX || IsLinux;
60-
#else
60+
#elif NET45
6161
var platform = (int)Environment.OSVersion.Platform;
6262
IsUnix = platform == 4 || platform == 6 || platform == 128;
6363
IsLinux = IsUnix;

0 commit comments

Comments
 (0)