diff options
author | Davi Arnaut <davi.arnaut@oracle.com> | 2010-10-13 12:11:29 -0300 |
---|---|---|
committer | Davi Arnaut <davi.arnaut@oracle.com> | 2010-10-13 12:11:29 -0300 |
commit | 215e967ace1c5cbcdcaf82d1b00b31bc9f132393 (patch) | |
tree | 0474850f6234405da1be770410019f50b4a96f32 /include | |
parent | e760a4d8ab820e5072149b2c1e86bb0a42f85171 (diff) | |
download | mariadb-git-215e967ace1c5cbcdcaf82d1b00b31bc9f132393.tar.gz |
Use a guard macro to prevent the inclusion of system headers
when checking the ABI with the C Preprocessor. Also, add the
new hearders to the cmake based ABI check.
cmake/abi_check.cmake:
Add headers which were added to the autotools ABI check.
Remove trailing spaces.
include/mysql/client_plugin.h:
Guard the inclusion of system headers.
Diffstat (limited to 'include')
-rw-r--r-- | include/mysql/client_plugin.h | 2 | ||||
-rw-r--r-- | include/mysql/client_plugin.h.pp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/mysql/client_plugin.h b/include/mysql/client_plugin.h index ddd3b64ca56..d9c0dd02008 100644 --- a/include/mysql/client_plugin.h +++ b/include/mysql/client_plugin.h @@ -23,8 +23,10 @@ */ #define MYSQL_CLIENT_PLUGIN_INCLUDED +#ifndef MYSQL_ABI_CHECK #include <stdarg.h> #include <stdlib.h> +#endif /* known plugin types */ #define MYSQL_CLIENT_reserved1 0 diff --git a/include/mysql/client_plugin.h.pp b/include/mysql/client_plugin.h.pp index 58627e06f09..e508f821aad 100644 --- a/include/mysql/client_plugin.h.pp +++ b/include/mysql/client_plugin.h.pp @@ -1,5 +1,3 @@ -#include <stdarg.h> -#include <stdlib.h> struct st_mysql_client_plugin { int type; unsigned int interface_version; const char *name; const char *author; const char *desc; unsigned int version[3]; const char *license; void *mysql_api; int (*init)(char *, size_t, int, va_list); int (*deinit)(); int (*options)(const char *option, const void *); |