From 1ce354b51f0f81c9e9c8bd1e8791b0a6d160aca4 Mon Sep 17 00:00:00 2001 From: Stephan Sundermann Date: Tue, 25 Nov 2014 15:53:50 +0100 Subject: [PATCH] Value: Add missing calling conventions --- sources/custom/Value.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sources/custom/Value.cs b/sources/custom/Value.cs index 4a13adf759..3171ab5a7c 100644 --- a/sources/custom/Value.cs +++ b/sources/custom/Value.cs @@ -432,19 +432,19 @@ namespace Gst return val; } - [DllImport ("libglib-2.0-0.dll") ] + [DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)] private static extern byte g_date_get_day (IntPtr date); - [DllImport ("libglib-2.0-0.dll") ] + [DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)] private static extern int g_date_get_month (IntPtr date); - [DllImport ("libglib-2.0-0.dll") ] + [DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)] private static extern ushort g_date_get_year (IntPtr date); - [DllImport ("libglib-2.0-0.dll") ] + [DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)] private static extern IntPtr g_date_new_dmy (byte day, int month, ushort year); - [DllImport ("libglib-2.0-0.dll") ] + [DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)] private static extern void g_date_free (IntPtr date); [DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]