diff options
Diffstat (limited to 'spline/export.hpp')
-rw-r--r-- | spline/export.hpp | 28 |
1 files changed, 6 insertions, 22 deletions
diff --git a/spline/export.hpp b/spline/export.hpp index 4875b4c1..180ce0f2 100644 --- a/spline/export.hpp +++ b/spline/export.hpp @@ -1,27 +1,11 @@ +// generates export.hpp for each module from compat/linkage.hpp + #pragma once -#ifdef BUILD_spline_widget -# ifdef _WIN32 -# define OPENTRACK_SPLINE_LINKAGE __declspec(dllexport) -# else -# define OPENTRACK_SPLINE_LINKAGE -# endif +#include "compat/linkage-macros.hpp" -# ifndef _MSC_VER -# define OPENTRACK_SPLINE_EXPORT __attribute__ ((visibility ("default"))) OPENTRACK_SPLINE_LINKAGE -# else -# define OPENTRACK_SPLINE_EXPORT OPENTRACK_SPLINE_LINKAGE -# endif +#ifdef BUILD_SPLINE +# define OTR_SPLINE_EXPORT OTR_GENERIC_EXPORT #else - #ifdef _WIN32 - # define OPENTRACK_SPLINE_LINKAGE __declspec(dllimport) - #else - # define OPENTRACK_SPLINE_LINKAGE - #endif - - #ifndef _MSC_VER - # define OPENTRACK_SPLINE_EXPORT __attribute__ ((visibility ("default"))) OPENTRACK_SPLINE_LINKAGE - #else - # define OPENTRACK_SPLINE_EXPORT OPENTRACK_SPLINE_LINKAGE - #endif +# define OTR_SPLINE_EXPORT OTR_GENERIC_IMPORT #endif |