aboutsummaryrefslogtreecommitdiff
path: root/libcommon/common/export.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-09-08 21:23:37 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-09-08 21:23:37 +0200
commitff5bb2accee87c24ee64e8fdcf5169e674c4b7b4 (patch)
tree321a74c1f48331cb44e3b90943501646c5024836 /libcommon/common/export.hxx
parentb3b1fac433a20e5ab6abb3729ecc5473a658718b (diff)
Add suppor for VC++ build
Diffstat (limited to 'libcommon/common/export.hxx')
-rw-r--r--libcommon/common/export.hxx39
1 files changed, 39 insertions, 0 deletions
diff --git a/libcommon/common/export.hxx b/libcommon/common/export.hxx
new file mode 100644
index 0000000..4ea2d33
--- /dev/null
+++ b/libcommon/common/export.hxx
@@ -0,0 +1,39 @@
+// file : libcommon/common/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 LIBCOMMON_COMMON_EXPORT_HXX
+#define LIBCOMMON_COMMON_EXPORT_HXX
+
+#ifndef _MSC_VER
+# include <common/config.h>
+#endif
+
+#ifdef LIBCOMMON_STATIC_LIB
+# define LIBCOMMON_EXPORT
+#else
+# ifdef _WIN32
+# ifdef _MSC_VER
+# ifdef LIBCOMMON_DYNAMIC_LIB
+# define LIBCOMMON_EXPORT __declspec(dllexport)
+# else
+# define LIBCOMMON_EXPORT __declspec(dllimport)
+# endif
+# else
+# ifdef LIBCOMMON_DYNAMIC_LIB
+# ifdef DLL_EXPORT
+# define LIBCOMMON_EXPORT __declspec(dllexport)
+# else
+# define LIBCOMMON_EXPORT
+# endif
+# else
+# define LIBCOMMON_EXPORT __declspec(dllimport)
+# endif
+# endif
+# else
+# define LIBCOMMON_EXPORT
+# endif
+#endif
+
+#endif // LIBCOMMON_COMMON_EXPORT_HXX