aboutsummaryrefslogtreecommitdiff
path: root/mysql/mysql_version.h
diff options
context:
space:
mode:
Diffstat (limited to 'mysql/mysql_version.h')
-rw-r--r--mysql/mysql_version.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/mysql/mysql_version.h b/mysql/mysql_version.h
index 45fe511..2f64ee6 100644
--- a/mysql/mysql_version.h
+++ b/mysql/mysql_version.h
@@ -5,3 +5,12 @@
*/
#include <mysql/version.h>
+
+/*
+ * Cancel the __stdcall calling convention for MinGW when compile for 32 bits
+ * architecture (see libmariadb%mysql/ma_config.h for details).
+ */
+#if defined(__MINGW32__) && !defined(_WIN64)
+# undef STDCALL
+# define STDCALL
+#endif