summaryrefslogtreecommitdiffhomepage
path: root/logic/export.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'logic/export.hpp')
-rw-r--r--logic/export.hpp29
1 files changed, 6 insertions, 23 deletions
diff --git a/logic/export.hpp b/logic/export.hpp
index 2503f3a6..b737e98e 100644
--- a/logic/export.hpp
+++ b/logic/export.hpp
@@ -1,28 +1,11 @@
-#pragma once
+// generates export.hpp for each module from compat/linkage.hpp
-#ifdef BUILD_logic
-# ifdef _WIN32
-# define OPENTRACK_LOGIC_LINKAGE __declspec(dllexport)
-# else
-# define OPENTRACK_LOGIC_LINKAGE
-# endif
+#pragma once
-# ifndef _MSC_VER
-# define OPENTRACK_LOGIC_EXPORT __attribute__ ((visibility ("default"))) OPENTRACK_LOGIC_LINKAGE
-# else
-# define OPENTRACK_LOGIC_EXPORT OPENTRACK_LOGIC_LINKAGE
-# endif
+#include "compat/linkage-macros.hpp"
+#ifdef BUILD_LOGIC
+# define OTR_LOGIC_EXPORT OTR_GENERIC_EXPORT
#else
-#ifdef _WIN32
-# define OPENTRACK_LOGIC_LINKAGE __declspec(dllimport)
-#else
-# define OPENTRACK_LOGIC_LINKAGE
-#endif
-
-#ifndef _MSC_VER
-# define OPENTRACK_LOGIC_EXPORT __attribute__ ((visibility ("default"))) OPENTRACK_LOGIC_LINKAGE
-#else
-# define OPENTRACK_LOGIC_EXPORT OPENTRACK_LOGIC_LINKAGE
-#endif
+# define OTR_LOGIC_EXPORT OTR_GENERIC_IMPORT
#endif