summaryrefslogtreecommitdiff
path: root/include/mysql
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2017-04-01 10:37:36 +0000
committerVladislav Vaintroub <wlad@mariadb.com>2017-04-01 10:37:36 +0000
commit62ba511314c7c524f42a4ba8bb0213d10498db9c (patch)
tree1ea0345b1ba1aea90aa24177d6abc7001a9105fd /include/mysql
parent321f5d9d70153a020a3f8442ee84abed248307bb (diff)
downloadmariadb-git-62ba511314c7c524f42a4ba8bb0213d10498db9c.tar.gz
Fix the build on Windows.
Restore MYSQL_SYSVAR_UINT64_T and MYSQL_SYSVAR_SIZE_T in plugin.h
Diffstat (limited to 'include/mysql')
-rw-r--r--include/mysql/plugin.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/mysql/plugin.h b/include/mysql/plugin.h
index a5bfa1bbc9e..2f077d8440e 100644
--- a/include/mysql/plugin.h
+++ b/include/mysql/plugin.h
@@ -393,6 +393,23 @@ DECLARE_MYSQL_SYSVAR_SIMPLE(name, unsigned long long) = { \
PLUGIN_VAR_LONGLONG | PLUGIN_VAR_UNSIGNED | ((opt) & PLUGIN_VAR_MASK), \
#name, comment, check, update, &varname, def, min, max, blk }
+#define MYSQL_SYSVAR_UINT64_T(name, varname, opt, comment, check, update, def, min, max, blk) \
+DECLARE_MYSQL_SYSVAR_SIMPLE(name, uint64_t) = { \
+ PLUGIN_VAR_LONGLONG | PLUGIN_VAR_UNSIGNED | ((opt) & PLUGIN_VAR_MASK), \
+ #name, comment, check, update, &varname, def, min, max, blk }
+
+#ifdef _WIN64
+#define MYSQL_SYSVAR_SIZE_T(name, varname, opt, comment, check, update, def, min, max, blk) \
+DECLARE_MYSQL_SYSVAR_SIMPLE(name, size_t) = { \
+ PLUGIN_VAR_LONGLONG | PLUGIN_VAR_UNSIGNED | ((opt) & PLUGIN_VAR_MASK), \
+ #name, comment, check, update, &varname, def, min, max, blk }
+#else
+#define MYSQL_SYSVAR_SIZE_T(name, varname, opt, comment, check, update, def, min, max, blk) \
+DECLARE_MYSQL_SYSVAR_SIMPLE(name, size_t) = { \
+ PLUGIN_VAR_LONG | PLUGIN_VAR_UNSIGNED | ((opt) & PLUGIN_VAR_MASK), \
+ #name, comment, check, update, &varname, def, min, max, blk }
+#endif
+
#define MYSQL_SYSVAR_ENUM(name, varname, opt, comment, check, update, def, typelib) \
DECLARE_MYSQL_SYSVAR_TYPELIB(name, unsigned long) = { \
PLUGIN_VAR_ENUM | ((opt) & PLUGIN_VAR_MASK), \