summaryrefslogtreecommitdiffhomepage
path: root/options/export.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'options/export.hpp')
-rw-r--r--options/export.hpp28
1 files changed, 6 insertions, 22 deletions
diff --git a/options/export.hpp b/options/export.hpp
index c430540f..6cce27fa 100644
--- a/options/export.hpp
+++ b/options/export.hpp
@@ -1,27 +1,11 @@
+// generates export.hpp for each module from compat/linkage.hpp
+
#pragma once
-#ifdef BUILD_options
-# ifdef _WIN32
-# define OPENTRACK_OPTIONS_LINKAGE __declspec(dllexport)
-# else
-# define OPENTRACK_OPTIONS_LINKAGE
-# endif
+#include "compat/linkage-macros.hpp"
-# ifndef _MSC_VER
-# define OPENTRACK_OPTIONS_EXPORT __attribute__ ((visibility ("default"))) OPENTRACK_OPTIONS_LINKAGE
-# else
-# define OPENTRACK_OPTIONS_EXPORT OPENTRACK_OPTIONS_LINKAGE
-# endif
+#ifdef BUILD_OPTIONS
+# define OTR_OPTIONS_EXPORT OTR_GENERIC_EXPORT
#else
- #ifdef _WIN32
- # define OPENTRACK_OPTIONS_LINKAGE __declspec(dllimport)
- #else
- # define OPENTRACK_OPTIONS_LINKAGE
- #endif
-
- #ifndef _MSC_VER
- # define OPENTRACK_OPTIONS_EXPORT __attribute__ ((visibility ("default"))) OPENTRACK_OPTIONS_LINKAGE
- #else
- # define OPENTRACK_OPTIONS_EXPORT OPENTRACK_OPTIONS_LINKAGE
- #endif
+# define OTR_OPTIONS_EXPORT OTR_GENERIC_IMPORT
#endif