mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 02:29:00 +08:00
184c724033
* [libmysql] Update to 8.0.20 * Fix the redefinition'MYSQL_BIND' between libmysql and libodb-mysql
33 lines
787 B
Diff
33 lines
787 B
Diff
diff --git a/odb/mysql/mysql-types.hxx b/odb/mysql/mysql-types.hxx
|
|
index 5396791..32a2a03 100644
|
|
--- a/odb/mysql/mysql-types.hxx
|
|
+++ b/odb/mysql/mysql-types.hxx
|
|
@@ -7,13 +7,24 @@
|
|
|
|
#include <odb/mysql/details/config.hxx>
|
|
|
|
+#include <odb/mysql/version.hxx>
|
|
+
|
|
typedef bool my_bool;
|
|
+
|
|
+#if !defined(LIBODB_MYSQL_MARIADB) && MYSQL_VERSION_ID >= 80011
|
|
+struct MYSQL_BIND;
|
|
+#else
|
|
typedef struct st_mysql_bind MYSQL_BIND;
|
|
+#endif
|
|
|
|
-#ifdef LIBODB_MYSQL_INCLUDE_SHORT
|
|
-# include <mysql_time.h>
|
|
+#ifdef LIBODB_MYSQL_MARIADB
|
|
+# include <mysql/mysql.h>
|
|
#else
|
|
-# include <mysql/mysql_time.h>
|
|
+# ifdef LIBODB_MYSQL_INCLUDE_SHORT
|
|
+# include <mysql_time.h>
|
|
+# else
|
|
+# include <mysql/mysql_time.h>
|
|
+# endif
|
|
#endif
|
|
|
|
#endif // ODB_MYSQL_MYSQL_TYPES_HXX
|