aboutsummaryrefslogtreecommitdiff
path: root/odb/mysql/exceptions.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/mysql/exceptions.hxx')
-rw-r--r--odb/mysql/exceptions.hxx21
1 files changed, 18 insertions, 3 deletions
diff --git a/odb/mysql/exceptions.hxx b/odb/mysql/exceptions.hxx
index 86cbb19..6be2d80 100644
--- a/odb/mysql/exceptions.hxx
+++ b/odb/mysql/exceptions.hxx
@@ -6,19 +6,32 @@
#ifndef ODB_MYSQL_EXCEPTIONS_HXX
#define ODB_MYSQL_EXCEPTIONS_HXX
-#include <string>
+#include <odb/pre.hxx>
+
+#include <odb/mysql/details/config.hxx>
+
+#ifdef LIBODB_MYSQL_INCLUDE_SHORT
+# ifdef _WIN32
+# include <winsock2.h>
+# endif
+# include <mysql.h>
+#else
+# include <mysql/mysql.h>
+#endif
-#include <mysql/mysql.h>
+#include <string>
#include <odb/exceptions.hxx>
#include <odb/mysql/version.hxx>
+#include <odb/mysql/details/export.hxx>
+
namespace odb
{
namespace mysql
{
- struct database_exception: odb::database_exception
+ struct LIBODB_MYSQL_EXPORT database_exception: odb::database_exception
{
database_exception (MYSQL*);
database_exception (MYSQL_STMT*);
@@ -62,4 +75,6 @@ namespace odb
}
}
+#include <odb/post.hxx>
+
#endif // ODB_MYSQL_EXCEPTIONS_HXX