From bef4db48d4344aa506e60a07ac3f7415aa155600 Mon Sep 17 00:00:00 2001 From: Francesco Bertolaccini Date: Wed, 27 Jan 2016 23:06:17 +0100 Subject: [PATCH] Change of calling convention for unix functions --- SharpPhysFS/Interop.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 }