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/details | |
parent | 4452be925b749572f0e3edcb21e9af818647eb55 (diff) |
Support for automake and VC++ builds
Diffstat (limited to 'odb/mysql/details')
-rw-r--r-- | odb/mysql/details/config.hxx | 19 | ||||
-rw-r--r-- | odb/mysql/details/export.hxx | 27 |
2 files changed, 46 insertions, 0 deletions
diff --git a/odb/mysql/details/config.hxx b/odb/mysql/details/config.hxx new file mode 100644 index 0000000..f8418c6 --- /dev/null +++ b/odb/mysql/details/config.hxx @@ -0,0 +1,19 @@ +// file : odb/mysql/details/config.hxx +// author : Boris Kolpackov <boris@codesynthesis.com> +// copyright : Copyright (c) 2005-2010 Code Synthesis Tools CC +// license : GNU GPL v2; see accompanying LICENSE file + +#ifndef ODB_MYSQL_DETAILS_CONFIG_HXX +#define ODB_MYSQL_DETAILS_CONFIG_HXX + +// no pre + +#ifndef LIBODB_MYSQL_INCLUDE_SHORT + #ifdef _WIN32 + #define LIBODB_MYSQL_INCLUDE_SHORT 1 + #endif +#endif + +// no post + +#endif // ODB_MYSQL_DETAILS_CONFIG_HXX diff --git a/odb/mysql/details/export.hxx b/odb/mysql/details/export.hxx new file mode 100644 index 0000000..bb3bac5 --- /dev/null +++ b/odb/mysql/details/export.hxx @@ -0,0 +1,27 @@ +// file : odb/mysql/details/export.hxx +// author : Boris Kolpackov <boris@codesynthesis.com> +// copyright : Copyright (c) 2005-2010 Code Synthesis Tools CC +// license : GNU GPL v2; see accompanying LICENSE file + +#ifndef ODB_MYSQL_DETAILS_EXPORT_HXX +#define ODB_MYSQL_DETAILS_EXPORT_HXX + +#include <odb/pre.hxx> + +#ifdef LIBODB_MYSQL_STATIC_LIB +# define LIBODB_MYSQL_EXPORT +#else +# ifdef _WIN32 +# ifdef LIBODB_MYSQL_DYNAMIC_LIB +# define LIBODB_MYSQL_EXPORT __declspec(dllexport) +# else +# define LIBODB_MYSQL_EXPORT __declspec(dllimport) +# endif +# else +# define LIBODB_MYSQL_EXPORT +# endif +#endif + +#include <odb/post.hxx> + +#endif // ODB_MYSQL_DETAILS_EXPORT_HXX |