1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

small plugin API related fixes

* define MYSQL_DYNAMIC_PLUGIN only for server plugins
* don't typedef my_bool in mysql.h if plugin.h has already done it
* fix the include guard in plugin.h
This commit is contained in:
Sergei Golubchik
2017-03-06 22:42:00 +01:00
parent 227f63db3b
commit 269ab56f8b
5 changed files with 13 additions and 5 deletions

View File

@@ -48,7 +48,11 @@ extern "C" {
#ifndef MYSQL_ABI_CHECK
#include <sys/types.h>
#endif
#ifndef MYSQL_PLUGIN_INCLUDED
typedef char my_bool;
#endif
#if (defined(_WIN32) || defined(_WIN64)) && !defined(__WIN__)
#define __WIN__
#endif