diff --git a/SharpPhysFS/Interop.cs b/SharpPhysFS/Interop.cs index 38a13e3..b3c59bf 100644 --- a/SharpPhysFS/Interop.cs +++ b/SharpPhysFS/Interop.cs @@ -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 }