diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-02 11:58:04 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-03 04:56:04 +0200 |
commit | 340906d3571ba3c75e67d8457de4129381d5a6b3 (patch) | |
tree | e6d502dcf39bb8f7eb5ee685da7781e51bf1b717 /opentrack | |
parent | 54dd13ffc6c16a149a55c75ce3dd3724fc8684b4 (diff) |
try fix MSVC
Diffstat (limited to 'opentrack')
-rw-r--r-- | opentrack/export.hpp | 8 | ||||
-rw-r--r-- | opentrack/plugin-support.hpp | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/opentrack/export.hpp b/opentrack/export.hpp index 8c8bdc69..f0983b75 100644 --- a/opentrack/export.hpp +++ b/opentrack/export.hpp @@ -1,7 +1,13 @@ #pragma once + #ifdef _WIN32 # define OPENTRACK_LINKAGE __declspec(dllexport) #else # define OPENTRACK_LINKAGE #endif -#define OPENTRACK_EXPORT __attribute__ ((visibility ("default"))) OPENTRACK_LINKAGE + +#ifndef _MSC_VER +# define OPENTRACK_EXPORT __attribute__ ((visibility ("default"))) OPENTRACK_LINKAGE +#else +# define OPENTRACK_EXPORT OPENTRACK_LINKAGE +#endif
\ No newline at end of file diff --git a/opentrack/plugin-support.hpp b/opentrack/plugin-support.hpp index 95b4b0a1..627bce6a 100644 --- a/opentrack/plugin-support.hpp +++ b/opentrack/plugin-support.hpp @@ -42,7 +42,7 @@ #include <iostream> #ifdef _MSC_VER -# error "No support for MSVC anymore" +# define OPENTRACK_LIB_PREFIX "" #else # define OPENTRACK_LIB_PREFIX "lib" #endif |