summaryrefslogtreecommitdiffhomepage
path: root/opentrack-compat/compat-import.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'opentrack-compat/compat-import.hpp')
-rw-r--r--opentrack-compat/compat-import.hpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/opentrack-compat/compat-import.hpp b/opentrack-compat/compat-import.hpp
new file mode 100644
index 00000000..161ccc5d
--- /dev/null
+++ b/opentrack-compat/compat-import.hpp
@@ -0,0 +1,15 @@
+#pragma once
+
+#ifndef OPENTRACK_COMPAT_EXPORT
+# ifdef _WIN32
+# define OPENTRACK_COMPAT_LINKAGE __declspec(dllimport)
+# else
+# define OPENTRACK_COMPAT_LINKAGE
+# endif
+
+# ifndef _MSC_VER
+# define OPENTRACK_COMPAT_EXPORT __attribute__ ((visibility ("default"))) OPENTRACK_COMPAT_LINKAGE
+# else
+# define OPENTRACK_COMPAT_EXPORT OPENTRACK_COMPAT_LINKAGE
+# endif
+#endif