Change of calling convention for unix functions

pull/2/head
Francesco Bertolaccini 2016-01-27 23:06:17 +01:00
parent b0856c424c
commit bef4db48d4
1 changed files with 3 additions and 3 deletions

View File

@ -76,13 +76,13 @@ namespace PhysFS
#endregion
#region Unix
[DllImport("libdl.so")]
[DllImport("libdl.so", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr dlopen(string filename, int flags);
[DllImport("libdl.so")]
[DllImport("libdl.so", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr dlsym(IntPtr handle, string symbol);
[DllImport("libdl.so")]
[DllImport("libdl.so", CallingConvention = CallingConvention.Cdecl)]
public static extern bool dlclose(IntPtr handle);
#endregion
}