Skip to content

Commit 2d6dcb6

Browse files
committed
Use IsComObject icall under UNITY_AOT.
IL2CPP supports COM interop and needs a chance to handle this call.
1 parent 2292ecc commit 2d6dcb6

File tree

1 file changed

+1
-1
lines changed
  • mcs/class/corlib/System.Runtime.InteropServices

1 file changed

+1
-1
lines changed

mcs/class/corlib/System.Runtime.InteropServices/Marshal.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,7 @@ public static object GetUniqueObjectForIUnknown (IntPtr unknown)
856856
throw new PlatformNotSupportedException ();
857857
}
858858

859-
#if !MOBILE && !UNITY
859+
#if !MOBILE || UNITY_AOT
860860
[MethodImplAttribute (MethodImplOptions.InternalCall)]
861861
public extern static bool IsComObject (object o);
862862
#else

0 commit comments

Comments
 (0)