Skip to content

Commit e62e1a0

Browse files
authored
Merge pull request #1469 from Unity-Technologies/unity-master-fix-1346334-part2
Use IsComObject icall under UNITY_AOT.
2 parents 2292ecc + 2d6dcb6 commit e62e1a0

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)