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.hpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/opentrack-compat/export.hpp b/opentrack-compat/export.hpp
index 100950a0..fbb62e1f 100644
--- a/opentrack-compat/export.hpp
+++ b/opentrack-compat/export.hpp
@@ -1,6 +1,6 @@
#pragma once
-#ifndef OPENTRACK_EXPORT
+#ifdef BUILD_compat
# ifdef _WIN32
# define OPENTRACK_LINKAGE __declspec(dllexport)
# else
@@ -8,8 +8,10 @@
# endif
# ifndef _MSC_VER
-# define OPENTRACK_EXPORT __attribute__ ((visibility ("default"))) OPENTRACK_LINKAGE
+# define OPENTRACK_COMPAT_EXPORT __attribute__ ((visibility ("default"))) OPENTRACK_LINKAGE
# else
-# define OPENTRACK_EXPORT OPENTRACK_LINKAGE
+# define OPENTRACK_COMPAT_EXPORT OPENTRACK_LINKAGE
# endif
+#else
+# include "import.hpp"
#endif