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/connection.hxx | |
parent | 4452be925b749572f0e3edcb21e9af818647eb55 (diff) |
Support for automake and VC++ builds
Diffstat (limited to 'odb/mysql/connection.hxx')
-rw-r--r-- | odb/mysql/connection.hxx | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/odb/mysql/connection.hxx b/odb/mysql/connection.hxx index cc5e5f0..9cbd5c5 100644 --- a/odb/mysql/connection.hxx +++ b/odb/mysql/connection.hxx @@ -6,7 +6,18 @@ #ifndef ODB_MYSQL_CONNECTION_HXX #define ODB_MYSQL_CONNECTION_HXX -#include <mysql/mysql.h> +#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 <vector> @@ -17,11 +28,13 @@ #include <odb/details/shared-ptr.hxx> +#include <odb/mysql/details/export.hxx> + namespace odb { namespace mysql { - class connection: public details::shared_base + class LIBODB_MYSQL_EXPORT connection: public details::shared_base { public: typedef mysql::statement_cache statement_cache_type; @@ -87,4 +100,6 @@ namespace odb } } +#include <odb/post.hxx> + #endif // ODB_MYSQL_CONNECTION_HXX |