+2010-04-07 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+ * DeflateStream.cs: always use Cdecl, since the library is compiled
+ using that calling convention in windows too.
+
2010-03-09 Gonzalo Paniagua Javier <gonzalo@novell.com>
* DeflateStream.cs: don't call unmanaged code when the byte count
const string LIBNAME = "MonoPosixHelper";
#endif
- [DllImport (LIBNAME)]
+ [DllImport (LIBNAME, CallingConvention=CallingConvention.Cdecl)]
static extern IntPtr CreateZStream (CompressionMode compress, bool gzip, UnmanagedReadOrWrite feeder, IntPtr data);
- [DllImport (LIBNAME)]
+ [DllImport (LIBNAME, CallingConvention=CallingConvention.Cdecl)]
static extern int CloseZStream (IntPtr stream);
- [DllImport (LIBNAME)]
+ [DllImport (LIBNAME, CallingConvention=CallingConvention.Cdecl)]
static extern int Flush (IntPtr stream);
- [DllImport (LIBNAME)]
+ [DllImport (LIBNAME, CallingConvention=CallingConvention.Cdecl)]
static extern int ReadZStream (IntPtr stream, IntPtr buffer, int length);
- [DllImport (LIBNAME)]
+ [DllImport (LIBNAME, CallingConvention=CallingConvention.Cdecl)]
static extern int WriteZStream (IntPtr stream, IntPtr buffer, int length);
}
}