Skip to content

Commit 7607b73

Browse files
committed
Use NETCOREAPP1_1_OR_GREATER condition
1 parent c56df59 commit 7607b73

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

swig/include/csharp/csharp_strings.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ static CSharpUtf8StringHelperCallback SWIG_csharp_string_callback = NULL;
5656
}
5757
internal class DefaultStringEncoder : IStringEncoder {
5858
public string FromNullTerminated(IntPtr pStr) {
59-
#if NETCOREAPP || NETSTANDARD2_1_OR_GREATER
59+
#if NETCOREAPP1_1_OR_GREATER || NETSTANDARD2_1_OR_GREATER
6060
return System.Runtime.InteropServices.Marshal.PtrToStringUTF8(pStr);
6161
#else
6262
if (pStr == IntPtr.Zero) return null;

0 commit comments

Comments
 (0)