diff options
Diffstat (limited to 'opentrack-compat/export.hpp')
-rw-r--r-- | opentrack-compat/export.hpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/opentrack-compat/export.hpp b/opentrack-compat/export.hpp index ccf25ff9..ba10f131 100644 --- a/opentrack-compat/export.hpp +++ b/opentrack-compat/export.hpp @@ -13,5 +13,15 @@ # define OPENTRACK_COMPAT_EXPORT OPENTRACK_COMPAT_LINKAGE # endif #else -# include "import.hpp" + #ifdef _WIN32 + # define OPENTRACK_COMPAT_LINKAGE __declspec(dllimport) + #else + # define OPENTRACK_COMPAT_LINKAGE + #endif + + #ifndef _MSC_VER + # define OPENTRACK_COMPAT_EXPORT __attribute__ ((visibility ("default"))) OPENTRACK_COMPAT_LINKAGE + #else + # define OPENTRACK_COMPAT_EXPORT OPENTRACK_COMPAT_LINKAGE + #endif #endif |