Rename unix libdl interop functions

pull/2/head
Francesco Bertolaccini 2016-01-29 20:02:56 +01:00
parent 1570c4cba9
commit f331ca24fb
1 changed files with 8 additions and 8 deletions

View File

@ -76,14 +76,14 @@ namespace SharpPhysFS
#endregion #endregion
#region Unix #region Unix
[DllImport("libdl.so", CallingConvention = CallingConvention.Cdecl)] [DllImport("libdl.so", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dlopen")]
public static extern IntPtr dlopen(string filename, int flags); public static extern IntPtr unix_dlopen(string filename, int flags);
[DllImport("libdl.so", CallingConvention = CallingConvention.Cdecl)] [DllImport("libdl.so", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dlsym")]
public static extern IntPtr dlsym(IntPtr handle, string symbol); public static extern IntPtr unix_dlsym(IntPtr handle, string symbol);
[DllImport("libdl.so", CallingConvention = CallingConvention.Cdecl)] [DllImport("libdl.so", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dlclose")]
public static extern bool dlclose(IntPtr handle); public static extern bool unix_dlclose(IntPtr handle);
#endregion #endregion
} }
@ -205,8 +205,8 @@ namespace SharpPhysFS
} }
else else
{ {
loadLibrary = n => DynamicLoader.dlopen(n, 1); loadLibrary = n => DynamicLoader.unix_dlopen(n, 1);
loadSymbol = DynamicLoader.dlsym; loadSymbol = DynamicLoader.unix_dlsym;
libraryName = "libphysfs.so"; libraryName = "libphysfs.so";
} }