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/database.hxx | |
parent | 4452be925b749572f0e3edcb21e9af818647eb55 (diff) |
Support for automake and VC++ builds
Diffstat (limited to 'odb/mysql/database.hxx')
-rw-r--r-- | odb/mysql/database.hxx | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/odb/mysql/database.hxx b/odb/mysql/database.hxx index 3272eda..0344f3c 100644 --- a/odb/mysql/database.hxx +++ b/odb/mysql/database.hxx @@ -6,7 +6,18 @@ #ifndef ODB_MYSQL_DATABASE_HXX #define ODB_MYSQL_DATABASE_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 <string> #include <memory> // std::auto_ptr @@ -21,11 +32,13 @@ #include <odb/details/shared-ptr.hxx> +#include <odb/mysql/details/export.hxx> + namespace odb { namespace mysql { - class database: public odb::database + class LIBODB_MYSQL_EXPORT database: public odb::database { public: typedef mysql::connection connection_type; @@ -156,4 +169,6 @@ namespace odb #include <odb/mysql/database.ixx> +#include <odb/post.hxx> + #endif // ODB_MYSQL_DATABASE_HXX |