Rename unix libdl interop functions
parent
1570c4cba9
commit
f331ca24fb
|
@ -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";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue