Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan McGovern <alan.mcgovern@gmail.com>2012-04-30 20:27:43 +0400
committerAlan McGovern <alan.mcgovern@gmail.com>2012-04-30 23:05:58 +0400
commit78472c850e0a6dcd3dc59482593a6246bfcf04f3 (patch)
tree761963bc8d3a7d4def9348cbf5e1026a1cf9807c
parent8871f47474892b29671fc4261f67fd12c104c0e7 (diff)
[GtkCore] We should use cdecl calling convention even on windows
This fixes some issues where p/invoking these functions would unbalance the stack
-rw-r--r--main/src/addins/MonoDevelop.GtkCore/libstetic/ParamSpec.cs20
1 files changed, 10 insertions, 10 deletions
diff --git a/main/src/addins/MonoDevelop.GtkCore/libstetic/ParamSpec.cs b/main/src/addins/MonoDevelop.GtkCore/libstetic/ParamSpec.cs
index c244285f22..d4610832c3 100644
--- a/main/src/addins/MonoDevelop.GtkCore/libstetic/ParamSpec.cs
+++ b/main/src/addins/MonoDevelop.GtkCore/libstetic/ParamSpec.cs
@@ -192,34 +192,34 @@ namespace Stetic {
return pspec;
}
- [DllImport("libgobject-2.0-0.dll")]
+ [DllImport("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void g_param_spec_ref (IntPtr obj);
- [DllImport("libgobject-2.0-0.dll")]
+ [DllImport("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void g_param_spec_unref (IntPtr obj);
- [DllImport("libgobject-2.0-0.dll")]
+ [DllImport("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void g_param_spec_sink (IntPtr obj);
- [DllImport("libgobject-2.0-0.dll")]
+ [DllImport("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr g_param_spec_get_name (IntPtr obj);
- [DllImport("libgobject-2.0-0.dll")]
+ [DllImport("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr g_param_spec_get_nick (IntPtr obj);
- [DllImport("libgobject-2.0-0.dll")]
+ [DllImport("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr g_param_spec_get_blurb (IntPtr obj);
- [DllImport("libgobject-2.0-0.dll")]
+ [DllImport("libgobject-2.0-0.dll", CallingConvention=CallingConvention.Cdecl)]
static extern bool g_param_value_defaults (IntPtr obj, ref GLib.Value value);
- [DllImport("libgobject-2.0-0.dll")]
+ [DllImport("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr g_type_class_ref (IntPtr gtype);
- [DllImport("libgobject-2.0-0.dll")]
+ [DllImport("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr g_object_class_find_property (IntPtr klass, string name);
- [DllImport("libgtk-win32-2.0-0.dll")]
+ [DllImport("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gtk_container_class_find_child_property (IntPtr klass, string name);
}
}