aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-09-11 11:48:18 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-09-19 17:41:24 +0300
commit245cf8d415b6c4198ab6412c354fa3556e666c5e (patch)
tree2117f73df52b9f17fbb3d73b24a639195a180d31
parent02a12d80df3c16de3fc2d6cb71c718a5785c8d37 (diff)
Fix odb-generated files compilation for libmysqlclient above or equal 8.0.11
-rw-r--r--odb/mysql/mysql-types.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/odb/mysql/mysql-types.hxx b/odb/mysql/mysql-types.hxx
index 32cb332..e1234e9 100644
--- a/odb/mysql/mysql-types.hxx
+++ b/odb/mysql/mysql-types.hxx
@@ -20,7 +20,9 @@ typedef char my_bool;
// Starting with 8.0.11 MySQL renamed st_mysql_bind to MYSQL_BIND.
//
-#if defined(LIBODB_MYSQL_MARIADB) || MYSQL_VERSION_ID < 80011
+#if !defined(LIBODB_MYSQL_MARIADB) && MYSQL_VERSION_ID >= 80011
+struct MYSQL_BIND;
+#else
typedef struct st_mysql_bind MYSQL_BIND;
#endif