From 7337f89f4d69cc0e5fe3a72f9f6773ecf9b24cc5 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 28 Mar 2017 11:00:31 +0200 Subject: start renaming internal macros as OPENTRACK_* to OTR_* --- compat/linkage-macros.hpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 compat/linkage-macros.hpp (limited to 'compat/linkage-macros.hpp') diff --git a/compat/linkage-macros.hpp b/compat/linkage-macros.hpp new file mode 100644 index 00000000..b9bc9801 --- /dev/null +++ b/compat/linkage-macros.hpp @@ -0,0 +1,15 @@ +#pragma once + +#if defined _MSC_VER || defined _WIN32 +# define OTR_GENERIC_EXPORT __declspec(dllexport) +# define OTR_GENERIC_IMPORT __declspec(dllimport) +#else +# define OTR_GENERIC_EXPORT __attribute__ ((visibility ("default"))) +# define OTR_GENERIC_IMPORT +#endif + +#if defined _MSC_VER +# define OTR_GENERIC_TEMPLATE +#else +# define OTR_GENERIC_TEMPLATE __attribute__ ((visibility ("default"))) +#endif -- cgit v1.2.3