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