summaryrefslogtreecommitdiffhomepage
path: root/compat/export.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'compat/export.hpp')
-rw-r--r--compat/export.hpp28
1 files changed, 6 insertions, 22 deletions
diff --git a/compat/export.hpp b/compat/export.hpp
index ba10f131..4bd6952f 100644
--- a/compat/export.hpp
+++ b/compat/export.hpp
@@ -1,27 +1,11 @@
+// generates export.hpp for each module from compat/linkage.hpp
+
#pragma once
-#ifdef BUILD_compat
-# ifdef _WIN32
-# define OPENTRACK_COMPAT_LINKAGE __declspec(dllexport)
-# else
-# define OPENTRACK_COMPAT_LINKAGE
-# endif
+#include "compat/linkage-macros.hpp"
-# ifndef _MSC_VER
-# define OPENTRACK_COMPAT_EXPORT __attribute__ ((visibility ("default"))) OPENTRACK_COMPAT_LINKAGE
-# else
-# define OPENTRACK_COMPAT_EXPORT OPENTRACK_COMPAT_LINKAGE
-# endif
+#ifdef BUILD_COMPAT
+# define OTR_COMPAT_EXPORT OTR_GENERIC_EXPORT
#else
- #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
+# define OTR_COMPAT_EXPORT OTR_GENERIC_IMPORT
#endif