diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-09-03 16:21:31 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-09-03 16:21:31 +0200 |
commit | 7e8e8aba7cc49bd26393c8f2cb07d99df9fec8dd (patch) | |
tree | cbbef7278026edf6ee1d9d93c9ef3df2e50bd001 /odb/mysql/details/export.hxx | |
parent | ab9911fc1ed97bcfcb013c202c610a950609f979 (diff) |
Add support for MinGW build
Diffstat (limited to 'odb/mysql/details/export.hxx')
-rw-r--r-- | odb/mysql/details/export.hxx | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/odb/mysql/details/export.hxx b/odb/mysql/details/export.hxx index bb3bac5..410f6d3 100644 --- a/odb/mysql/details/export.hxx +++ b/odb/mysql/details/export.hxx @@ -8,14 +8,28 @@ #include <odb/pre.hxx> +#include <odb/mysql/details/config.hxx> + #ifdef LIBODB_MYSQL_STATIC_LIB # define LIBODB_MYSQL_EXPORT #else # ifdef _WIN32 -# ifdef LIBODB_MYSQL_DYNAMIC_LIB -# define LIBODB_MYSQL_EXPORT __declspec(dllexport) +# ifdef _MSC_VER +# ifdef LIBODB_MYSQL_DYNAMIC_LIB +# define LIBODB_MYSQL_EXPORT __declspec(dllexport) +# else +# define LIBODB_MYSQL_EXPORT __declspec(dllimport) +# endif # else -# define LIBODB_MYSQL_EXPORT __declspec(dllimport) +# ifdef LIBODB_MYSQL_DYNAMIC_LIB +# ifdef DLL_EXPORT +# define LIBODB_MYSQL_EXPORT __declspec(dllexport) +# else +# define LIBODB_MYSQL_EXPORT +# endif +# else +# define LIBODB_MYSQL_EXPORT __declspec(dllimport) +# endif # endif # else # define LIBODB_MYSQL_EXPORT |