summaryrefslogtreecommitdiffhomepage
path: root/compat/linkage-macros.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'compat/linkage-macros.hpp')
-rw-r--r--compat/linkage-macros.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/compat/linkage-macros.hpp b/compat/linkage-macros.hpp
index dff9a34c..3a64648a 100644
--- a/compat/linkage-macros.hpp
+++ b/compat/linkage-macros.hpp
@@ -5,13 +5,13 @@
# 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, visibility ("default")))
+# define OTR_GENERIC_IMPORT __attribute__((dllimport))
#else
# define OTR_GENERIC_EXPORT __attribute__((visibility ("default")))
-# define OTR_GENERIC_IMPORT __attribute__((visibility ("default")))
+# define OTR_GENERIC_IMPORT
#endif
-#if defined __APPLE__ || (defined __MINGW32__ && defined _WIN64)
+#if defined __APPLE__ || (defined __MINGW32__ && (defined __clang__ || defined _WIN64))
# define OTR_NO_TMPL_INST // link failure on both targets
#endif