summaryrefslogtreecommitdiffhomepage
path: root/opentrack-compat/export.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'opentrack-compat/export.hpp')
-rw-r--r--opentrack-compat/export.hpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/opentrack-compat/export.hpp b/opentrack-compat/export.hpp
new file mode 100644
index 00000000..f0983b75
--- /dev/null
+++ b/opentrack-compat/export.hpp
@@ -0,0 +1,13 @@
+#pragma once
+
+#ifdef _WIN32
+# define OPENTRACK_LINKAGE __declspec(dllexport)
+#else
+# define OPENTRACK_LINKAGE
+#endif
+
+#ifndef _MSC_VER
+# define OPENTRACK_EXPORT __attribute__ ((visibility ("default"))) OPENTRACK_LINKAGE
+#else
+# define OPENTRACK_EXPORT OPENTRACK_LINKAGE
+#endif \ No newline at end of file