diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-08-30 15:51:23 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-08-30 15:51:23 +0200 |
commit | 1692b3e82521e7d73a908f532eced90491e1eded (patch) | |
tree | c45272faba67485f3702395f43282a81a981cf5f /odb/mysql/exceptions.hxx | |
parent | 4452be925b749572f0e3edcb21e9af818647eb55 (diff) |
Support for automake and VC++ builds
Diffstat (limited to 'odb/mysql/exceptions.hxx')
-rw-r--r-- | odb/mysql/exceptions.hxx | 21 |
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 |