configure: Add a macro to define an stdcall suffix in assembly code.
diff --git a/configure b/configure
index 5b973e4..1536001 100755
--- a/configure
+++ b/configure
Binary files differ
diff --git a/configure.ac b/configure.ac
index 48c76fe..aa3b892 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1400,6 +1400,19 @@
                       [if (ac_test) return 1],
                       ac_cv_c_extern_prefix="yes",ac_cv_c_extern_prefix="no"))
 
+case $host_cpu in
+  *i[[3456789]]86*)
+    AC_CACHE_CHECK([whether external symbols need stdcall decoration], ac_cv_c_stdcall_suffix,
+        WINE_TRY_ASM_LINK(["jmp _ac_test@4"],
+[#ifndef _MSC_VER
+#define __stdcall __attribute__((__stdcall__))
+#endif
+int __stdcall ac_test(int i) { return i; }],
+                          [if (ac_test(1)) return 1],
+                          ac_cv_c_stdcall_suffix="yes",ac_cv_c_stdcall_suffix="no")) ;;
+  *) ac_cv_c_stdcall_suffix="no" ;;
+esac
+
 AH_TEMPLATE(__ASM_NAME,[Define to a macro to generate an assembly name from a C symbol])
 if test "$ac_cv_c_extern_prefix" = "yes"
 then
@@ -1410,6 +1423,14 @@
     asm_name_prefix=""
 fi
 
+AH_TEMPLATE(__ASM_STDCALL,[Define to a macro to generate an stdcall suffix])
+if test "$ac_cv_c_stdcall_suffix" = "yes"
+then
+    AC_DEFINE([__ASM_STDCALL(args)],["@" #args])
+else
+    AC_DEFINE([__ASM_STDCALL(args)],[""])
+fi
+
 dnl **** Check how to define a function in assembly code ****
 
 AC_CACHE_CHECK([how to define a function in assembly code], ac_cv_asm_func_def,
diff --git a/include/config.h.in b/include/config.h.in
index c94523e..5b5f7c8 100644
--- a/include/config.h.in
+++ b/include/config.h.in
@@ -1197,6 +1197,9 @@
 /* Define to a macro to generate an assembly name from a C symbol */
 #undef __ASM_NAME
 
+/* Define to a macro to generate an stdcall suffix */
+#undef __ASM_STDCALL
+
 /* Define to empty if `const' does not conform to ANSI C. */
 #undef const