Skip to content

Commit ef767e1

Browse files
authored
Merge pull request #1852 from shimat/fix_NativeMethods_bug
Fix bug in NativeMethods implementation
2 parents 6e4c249 + 007639f commit ef767e1

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/OpenCvSharp/Internal/PInvoke/NativeMethods/NativeMethods.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public static partial class NativeMethods
2828

2929
private const UnmanagedType StringUnmanagedTypeNotWindows =
3030
#if NETSTANDARD2_0
31-
UnmanagedType.LPStr;
31+
UnmanagedType.LPStr;
3232
#else
3333
UnmanagedType.LPUTF8Str;
3434
#endif
@@ -169,8 +169,8 @@ public static bool IsUnix()
169169
RuntimeInformation.IsOSPlatform(OSPlatform.OSX) ||
170170
RuntimeInformation.IsOSPlatform(OSPlatform.FreeBSD);
171171
#else
172-
return RuntimeInformation.IsOSPlatform(OSPlatform.Linux) ||
173-
RuntimeInformation.IsOSPlatform(OSPlatform.OSX);
172+
return RuntimeInformation.IsOSPlatform(OSPlatform.Linux) ||
173+
RuntimeInformation.IsOSPlatform(OSPlatform.OSX);
174174
#endif
175175
}
176176

@@ -189,10 +189,10 @@ public static bool IsMono()
189189
/// <returns></returns>
190190
public static bool IsWasm()
191191
{
192-
#if NET6_0
192+
#if NET5_0_OR_GREATER
193193
return RuntimeInformation.OSArchitecture == Architecture.Wasm;
194194
#else
195-
return false;
195+
return false;
196196
#endif
197197
}
198198

0 commit comments

Comments
 (0)