diff options
author | therzok <marius.ungureanu@xamarin.com> | 2019-08-23 15:54:59 +0300 |
---|---|---|
committer | therzok <marius.ungureanu@xamarin.com> | 2019-08-27 00:35:34 +0300 |
commit | 0861114c58b11c887d6bd14e4dfac2faec321629 (patch) | |
tree | f6b6f32550e25b73ac97a592d3454843dcd438c7 /main/src/addins/MacPlatform/MacPlatform.cs | |
parent | ac4490b747c539273c2c43147b23e1a9e39fc890 (diff) |
[Mac] Remove some dead code and use Xamarin.Mac constants for PInvoke signatures
Diffstat (limited to 'main/src/addins/MacPlatform/MacPlatform.cs')
-rw-r--r-- | main/src/addins/MacPlatform/MacPlatform.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/main/src/addins/MacPlatform/MacPlatform.cs b/main/src/addins/MacPlatform/MacPlatform.cs index 32a57e1a21..3d3346ebab 100644 --- a/main/src/addins/MacPlatform/MacPlatform.cs +++ b/main/src/addins/MacPlatform/MacPlatform.cs @@ -87,16 +87,16 @@ namespace MonoDevelop.MacIntegration } } - [DllImport("/usr/lib/libobjc.dylib")] + [DllImport(Constants.ObjectiveCLibrary)] private static extern IntPtr class_getInstanceMethod(IntPtr classHandle, IntPtr Selector); - [DllImport("/usr/lib/libobjc.dylib")] + [DllImport(Constants.ObjectiveCLibrary)] private static extern IntPtr method_getImplementation(IntPtr method); - [DllImport("/usr/lib/libobjc.dylib")] + [DllImport(Constants.ObjectiveCLibrary)] private static extern IntPtr imp_implementationWithBlock(ref BlockLiteral block); - [DllImport("/usr/lib/libobjc.dylib")] + [DllImport(Constants.ObjectiveCLibrary)] private static extern void method_setImplementation(IntPtr method, IntPtr imp); [MonoNativeFunctionWrapper] |