diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-07-29 06:36:18 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-07-29 06:36:18 +0200 |
commit | a7df6bae0326968a886685f27a9fa8ff24befd42 (patch) | |
tree | 1da29dd62ae985e4c62fc4699a3cd4062083d325 /compat/linkage-macros.hpp | |
parent | 1ba054cfc09a47fe838f487c042d3b279c3edc73 (diff) |
compat: fix Linux build
Issue: #661
Diffstat (limited to 'compat/linkage-macros.hpp')
-rw-r--r-- | compat/linkage-macros.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/compat/linkage-macros.hpp b/compat/linkage-macros.hpp index a4c4b351..9e71ac8c 100644 --- a/compat/linkage-macros.hpp +++ b/compat/linkage-macros.hpp @@ -1,8 +1,11 @@ #pragma once -#if defined _MSC_VER || defined _WIN32 +#if defined _MSC_VER # define OTR_GENERIC_EXPORT __declspec(dllexport) # define OTR_GENERIC_IMPORT __declspec(dllimport) +#elif defined _WIN32 && !defined(__WINE__) +# define OTR_GENERIC_EXPORT __attribute__((dllexport, visibility ("default"))) +# define OTR_GENERIC_IMPORT __attribute__((dllimport)) #else # define OTR_GENERIC_EXPORT __attribute__ ((visibility ("default"))) # define OTR_GENERIC_IMPORT |