diff options
Diffstat (limited to 'opentrack')
-rw-r--r-- | opentrack/export.hpp | 12 | ||||
-rw-r--r-- | opentrack/import.hpp | 13 |
2 files changed, 11 insertions, 14 deletions
diff --git a/opentrack/export.hpp b/opentrack/export.hpp index 96daef53..a9f3521e 100644 --- a/opentrack/export.hpp +++ b/opentrack/export.hpp @@ -14,5 +14,15 @@ # endif #else -# include "import.hpp" + #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 #endif diff --git a/opentrack/import.hpp b/opentrack/import.hpp deleted file mode 100644 index 7448416a..00000000 --- a/opentrack/import.hpp +++ /dev/null @@ -1,13 +0,0 @@ -#pragma once - -#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 |