summaryrefslogtreecommitdiff
path: root/include/mysql
diff options
context:
space:
mode:
Diffstat (limited to 'include/mysql')
-rw-r--r--include/mysql/plugin.h6
-rw-r--r--include/mysql/plugin_auth_common.h4
2 files changed, 7 insertions, 3 deletions
diff --git a/include/mysql/plugin.h b/include/mysql/plugin.h
index 32228b63428..2e5e6b5c9b0 100644
--- a/include/mysql/plugin.h
+++ b/include/mysql/plugin.h
@@ -122,9 +122,9 @@ int PSIZE= sizeof(struct st_mysql_plugin); \
struct st_mysql_plugin DECLS[]= {
#define MARIA_DECLARE_PLUGIN__(NAME, VERSION, PSIZE, DECLS) \
-int VERSION= MARIA_PLUGIN_INTERFACE_VERSION; \
-int PSIZE= sizeof(struct st_maria_plugin); \
-struct st_maria_plugin DECLS[]= {
+MYSQL_PLUGIN_EXPORT int VERSION= MARIA_PLUGIN_INTERFACE_VERSION; \
+MYSQL_PLUGIN_EXPORT int PSIZE= sizeof(struct st_maria_plugin); \
+MYSQL_PLUGIN_EXPORT struct st_maria_plugin DECLS[]= {
#else
#define __MYSQL_DECLARE_PLUGIN(NAME, VERSION, PSIZE, DECLS) \
diff --git a/include/mysql/plugin_auth_common.h b/include/mysql/plugin_auth_common.h
index 3c87fe7e094..2f6642abac1 100644
--- a/include/mysql/plugin_auth_common.h
+++ b/include/mysql/plugin_auth_common.h
@@ -15,6 +15,10 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
+#ifdef _WIN32
+#include <windows.h>
+#endif
+
/**
@file