aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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