svn path=/branches/mono-1-0/mono/; revision=34021
+2004-09-17 Zoltan Varga <vargaz@freemail.hu>
+
+ * loader.c (mono_lookup_pinvoke_call): Add support for stdcall name
+ mangling.
+
2004-09-16 Lluis Sanchez Gual <lluis@novell.com>
* locales.c: nullify the ICU_collator member of CompareInfo when it is
break;
}
+
+#ifdef PLATFORM_WIN32
+ /* Try the stdcall mangled name */
+ if (!method->addr) {
+ /* FIX: Compute this correctly */
+ mangled_name = g_strdup_printf ("%s@%d", import, method->signature->param_count * sizeof (gpointer));
+ g_module_symbol (gmodule, mangled_name, &method->addr);
+ g_free (mangled_name);
+ }
+ if (!method->addr) {
+ mangled_name = g_strdup_printf ("_%s@%d", import, method->signature->param_count * sizeof (gpointer));
+ g_module_symbol (gmodule, mangled_name, &method->addr);
+ g_free (mangled_name);
+ }
+#endif
}
if (!method->addr) {