summaryrefslogtreecommitdiffhomepage
path: root/migration/export.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'migration/export.hpp')
-rw-r--r--migration/export.hpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/migration/export.hpp b/migration/export.hpp
new file mode 100644
index 00000000..800ddf35
--- /dev/null
+++ b/migration/export.hpp
@@ -0,0 +1,28 @@
+#pragma once
+
+#ifdef BUILD_migration
+# ifdef _WIN32
+# define OPENTRACK_MIGRATION_LINKAGE __declspec(dllexport)
+# else
+# define OPENTRACK_MIGRATION_LINKAGE
+# endif
+
+# ifndef _MSC_VER
+# define OPENTRACK_MIGRATION_EXPORT __attribute__ ((visibility ("default"))) OPENTRACK_MIGRATION_LINKAGE
+# else
+# define OPENTRACK_MIGRATION_EXPORT OPENTRACK_MIGRATION_LINKAGE
+# endif
+
+#else
+ #ifdef _WIN32
+ # define OPENTRACK_MIGRATION_LINKAGE __declspec(dllimport)
+ #else
+ # define OPENTRACK_MIGRATION_LINKAGE
+ #endif
+
+ #ifndef _MSC_VER
+ # define OPENTRACK_MIGRATION_EXPORT __attribute__ ((visibility ("default"))) OPENTRACK_MIGRATION_LINKAGE
+ #else
+ # define OPENTRACK_MIGRATION_EXPORT OPENTRACK_MIGRATION_LINKAGE
+ #endif
+#endif