diff options
Diffstat (limited to 'opentrack-logic/export.hpp')
-rw-r--r-- | opentrack-logic/export.hpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/opentrack-logic/export.hpp b/opentrack-logic/export.hpp index db4f0d86..2503f3a6 100644 --- a/opentrack-logic/export.hpp +++ b/opentrack-logic/export.hpp @@ -14,5 +14,15 @@ # endif #else -# include "import.hpp" +#ifdef _WIN32 +# define OPENTRACK_LOGIC_LINKAGE __declspec(dllimport) +#else +# define OPENTRACK_LOGIC_LINKAGE +#endif + +#ifndef _MSC_VER +# define OPENTRACK_LOGIC_EXPORT __attribute__ ((visibility ("default"))) OPENTRACK_LOGIC_LINKAGE +#else +# define OPENTRACK_LOGIC_EXPORT OPENTRACK_LOGIC_LINKAGE +#endif #endif |