aboutsummaryrefslogtreecommitdiff
path: root/odb/details/export.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/details/export.hxx')
-rw-r--r--odb/details/export.hxx18
1 files changed, 15 insertions, 3 deletions
diff --git a/odb/details/export.hxx b/odb/details/export.hxx
index ef43c6c..19bd313 100644
--- a/odb/details/export.hxx
+++ b/odb/details/export.hxx
@@ -14,10 +14,22 @@
# define LIBODB_EXPORT
#else
# ifdef _WIN32
-# ifdef LIBODB_DYNAMIC_LIB
-# define LIBODB_EXPORT __declspec(dllexport)
+# ifdef _MSC_VER
+# ifdef LIBODB_DYNAMIC_LIB
+# define LIBODB_EXPORT __declspec(dllexport)
+# else
+# define LIBODB_EXPORT __declspec(dllimport)
+# endif
# else
-# define LIBODB_EXPORT __declspec(dllimport)
+# ifdef LIBODB_DYNAMIC_LIB
+# ifdef DLL_EXPORT
+# define LIBODB_EXPORT __declspec(dllexport)
+# else
+# define LIBODB_EXPORT
+# endif
+# else
+# define LIBODB_EXPORT __declspec(dllimport)
+# endif
# endif
# else
# define LIBODB_EXPORT