diff options
author | unknown <serg@janus.mylan> | 2006-09-07 12:56:32 +0200 |
---|---|---|
committer | unknown <serg@janus.mylan> | 2006-09-07 12:56:32 +0200 |
commit | 2ae54e3b9daf81b23d713776be6b60bf0e906ab9 (patch) | |
tree | 9901b297ca8f02175f27d3fd41eb168a944ede53 /sql/sql_plugin.cc | |
parent | 0fbd21584ddece7e61c3124ffbaf8b474779062b (diff) | |
download | mariadb-git-2ae54e3b9daf81b23d713776be6b60bf0e906ab9.tar.gz |
minor plugin api fixes:
remove #define __attribute__(A) from plugin.h
increase API version because placeholders were added
more robust definition of min_plugin_interface_version
include/mysql/plugin.h:
move #define __attribute__(A) out of plugin.h (not part of the API)
increase API version because placeholders were added
plugin/fulltext/plugin_example.c:
compilation failure on non-GCC compilers
sql/sql_plugin.cc:
more robust definition of min_plugin_interface_version
it should work even when we forget to update it
Diffstat (limited to 'sql/sql_plugin.cc')
-rw-r--r-- | sql/sql_plugin.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_plugin.cc b/sql/sql_plugin.cc index b66d2d20925..56f58d67259 100644 --- a/sql/sql_plugin.cc +++ b/sql/sql_plugin.cc @@ -40,7 +40,7 @@ static const char *plugin_interface_version_sym= static const char *sizeof_st_plugin_sym= "_mysql_sizeof_struct_st_plugin_"; static const char *plugin_declarations_sym= "_mysql_plugin_declarations_"; -static int min_plugin_interface_version= 0x0000; +static int min_plugin_interface_version= MYSQL_PLUGIN_INTERFACE_VERSION & ~0xFF; /* Note that 'int version' must be the first field of every plugin sub-structure (plugin->info). */ |