From 72e7f011b29998d8a3e15eb5b381ef962af5fe5b Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 5 Apr 2019 10:30:58 +0300 Subject: Upgrade to 8.0.15 --- libmysqlclient/mysql/binlog_config.h | 53 ++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 libmysqlclient/mysql/binlog_config.h (limited to 'libmysqlclient/mysql/binlog_config.h') diff --git a/libmysqlclient/mysql/binlog_config.h b/libmysqlclient/mysql/binlog_config.h new file mode 100644 index 0000000..2c7b395 --- /dev/null +++ b/libmysqlclient/mysql/binlog_config.h @@ -0,0 +1,53 @@ +/* + * file : mysql/binlog_config.h + * copyright : Copyright (c) 2016-2019 Code Synthesis Ltd + * license : GPLv2 with Universal FOSS Exception; see accompanying LICENSE file + */ + +#ifndef MYSQL_BINLOG_CONFIG_H +#define MYSQL_BINLOG_CONFIG_H + +/* + * For the semantics of the following macros refer to + * binlog_config.h.cmake.orig and libbinlogevents/configure.cmake. + * + * Note that we will explicitly undefine macros that are present in the + * libmysqlclient source code but should not be defined. While this is not + * technically required, it simplifies the change tracking (see README-DEV). + * As a bonus we also make sure that they are not get eventually defined by + * some system headers. + */ + +#include // BYTE_ORDER, BIG_ENDIAN, SIZEOF_* + +/* + * Macros defined by upstream's binlog_config.h (see binlog_config.h.cmake for + * details). + */ +#if BYTE_ORDER == BIG_ENDIAN +# define IS_BIG_ENDIAN 1 +#endif + +/* + * If le{64,32,16}toh() are defined in endian.h. That's why the macros are not + * defined for FreeBSD. + */ +#ifdef __linux__ +# define HAVE_LE64TOH 1 +# define HAVE_LE32TOH 1 +# define HAVE_LE16TOH 1 +#endif + +#ifndef _WIN32 +# define HAVE_STRNDUP 1 +#endif + +#if defined(HAVE_LE64TOH) && defined(HAVE_LE32TOH) && defined(HAVE_LE16TOH) +# define HAVE_ENDIAN_CONVERSION_MACROS 1 +#endif + +#define HAVE_LONG_LONG 1 +#define HAVE_LONG 1 +#define HAVE_INT 1 + +#endif /* MYSQL_BINLOG_CONFIG_H */ -- cgit v1.1