summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/mysql/plugin.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/mysql/plugin.h b/include/mysql/plugin.h
index 32c971bb99e..e46bea9f24f 100644
--- a/include/mysql/plugin.h
+++ b/include/mysql/plugin.h
@@ -118,8 +118,11 @@ 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); \
+MYSQL_PLUGIN_EXPORT int VERSION; \
+int VERSION= MARIA_PLUGIN_INTERFACE_VERSION; \
+MYSQL_PLUGIN_EXPORT int PSIZE; \
+int PSIZE= sizeof(struct st_maria_plugin); \
+MYSQL_PLUGIN_EXPORT struct st_maria_plugin DECLS[]; \
struct st_maria_plugin DECLS[]= {
#else