aboutsummaryrefslogtreecommitdiff
path: root/odb/mysql/details/export.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-08-30 15:51:23 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-08-30 15:51:23 +0200
commit1692b3e82521e7d73a908f532eced90491e1eded (patch)
treec45272faba67485f3702395f43282a81a981cf5f /odb/mysql/details/export.hxx
parent4452be925b749572f0e3edcb21e9af818647eb55 (diff)
Support for automake and VC++ builds
Diffstat (limited to 'odb/mysql/details/export.hxx')
-rw-r--r--odb/mysql/details/export.hxx27
1 files changed, 27 insertions, 0 deletions
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