Add OSX libdyld interop functions

pull/2/head
Francesco Bertolaccini 2016-01-29 20:04:01 +01:00
parent f331ca24fb
commit a773a4eef6
1 changed files with 11 additions and 0 deletions

View File

@ -85,6 +85,17 @@ namespace SharpPhysFS
[DllImport("libdl.so", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dlclose")]
public static extern bool unix_dlclose(IntPtr handle);
#endregion
#region OSX
[DllImport("libdyld.dylib", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dlopen")]
public static extern IntPtr osx_dlopen(string filename, int flags);
[DllImport("libdyld.dylib", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dlsym")]
public static extern IntPtr osx_dlsym(IntPtr handle, string symbol);
[DllImport("libdyld.dylib", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dlclose")]
public static extern bool osx_dlclose(IntPtr handle);
#endregion
}
static class Interop