summaryrefslogtreecommitdiffhomepage
path: root/api/export.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'api/export.hpp')
-rw-r--r--api/export.hpp29
1 files changed, 6 insertions, 23 deletions
diff --git a/api/export.hpp b/api/export.hpp
index a9f3521e..59389bdf 100644
--- a/api/export.hpp
+++ b/api/export.hpp
@@ -1,28 +1,11 @@
-#pragma once
+// generates export.hpp for each module from compat/linkage.hpp
-#ifdef BUILD_api
-# ifdef _WIN32
-# define OPENTRACK_API_LINKAGE __declspec(dllexport)
-# else
-# define OPENTRACK_API_LINKAGE
-# endif
+#pragma once
-# ifndef _MSC_VER
-# define OPENTRACK_API_EXPORT __attribute__ ((visibility ("default"))) OPENTRACK_API_LINKAGE
-# else
-# define OPENTRACK_API_EXPORT OPENTRACK_API_LINKAGE
-# endif
+#include "compat/linkage-macros.hpp"
+#ifdef BUILD_API
+# define OTR_API_EXPORT OTR_GENERIC_EXPORT
#else
- #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
+# define OTR_API_EXPORT OTR_GENERIC_IMPORT
#endif