summaryrefslogtreecommitdiff
path: root/include/my_global.h
diff options
context:
space:
mode:
authorJoerg Bruehe <joerg@mysql.com>2010-04-18 15:32:05 +0200
committerJoerg Bruehe <joerg@mysql.com>2010-04-18 15:32:05 +0200
commit8dcbf6e20c9528f4e0eedd5e1be1d481215fe3db (patch)
treec875ec9df2c1c5133605fe134c52fdb4dc1c30b9 /include/my_global.h
parent24b9ff294cf00ffc5ae78b3b45f3d74bd34faa6f (diff)
parent29f098f2d3b8cabe352bd255567c4eae4bcfea00 (diff)
downloadmariadb-git-8dcbf6e20c9528f4e0eedd5e1be1d481215fe3db.tar.gz
Merge the changes of the 5.5.3-m3 release build
back into the development branches.
Diffstat (limited to 'include/my_global.h')
-rw-r--r--include/my_global.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/include/my_global.h b/include/my_global.h
index 67973ebd560..094853cb642 100644
--- a/include/my_global.h
+++ b/include/my_global.h
@@ -18,6 +18,11 @@
#ifndef _global_h
#define _global_h
+/* Client library users on Windows need this macro defined here. */
+#if !defined(__WIN__) && defined(_WIN32)
+#define __WIN__
+#endif
+
/*
InnoDB depends on some MySQL internals which other plugins should not
need. This is because of InnoDB's foreign key support, "safe" binlog
@@ -1089,10 +1094,14 @@ typedef long long my_ptrdiff_t;
#define HUGE_PTR
#endif
#endif
-#if defined(__IBMC__) || defined(__IBMCPP__)
-/* This was _System _Export but caused a lot of warnings on _AIX43 */
-#define STDCALL
-#elif !defined( STDCALL)
+
+#ifdef STDCALL
+#undef STDCALL
+#endif
+
+#ifdef _WIN32
+#define STDCALL __stdcall
+#else
#define STDCALL
#endif