diff options
author | Daniel Fischer <df@sun.com> | 2010-04-16 10:27:18 +0200 |
---|---|---|
committer | MySQL Build Team <build@mysql.com> | 2010-04-16 10:27:18 +0200 |
commit | c62d8e5cb5ae57cedd08f761e99cab0e98f8496a (patch) | |
tree | 1784f24fe8f497f687a8e9841f29c57d0b097cab /include | |
parent | 8b79e6209cd8222855e8a7e4a52b0d4ec0263634 (diff) | |
download | mariadb-git-c62d8e5cb5ae57cedd08f761e99cab0e98f8496a.tar.gz |
Make the libraries we produce on Windows actually usable
Diffstat (limited to 'include')
-rw-r--r-- | include/my_global.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/include/my_global.h b/include/my_global.h index b4bc61e0a48..c0a55e0f4e4 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 |