summaryrefslogtreecommitdiffhomepage
path: root/compat/linkage-macros.hpp
diff options
context:
space:
mode:
authorAttila Csipa <git@csipa.net>2017-07-07 13:16:16 +0100
committerAttila Csipa <git@csipa.net>2017-07-07 13:16:16 +0100
commit89b3621079aebc04b32892b01040397044c21bf4 (patch)
treefeac22663567716e51133734d7592da64adfd239 /compat/linkage-macros.hpp
parentb8272dabb295ff8c92cde01d8a3170aae9b180a6 (diff)
parentf013741288cbbd9a2e70aea727cbb80cf72d10cc (diff)
Merge remote-tracking branch 'upstream/unstable' into unstable
Diffstat (limited to 'compat/linkage-macros.hpp')
-rw-r--r--compat/linkage-macros.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/compat/linkage-macros.hpp b/compat/linkage-macros.hpp
index 460e7ee5..a4c4b351 100644
--- a/compat/linkage-macros.hpp
+++ b/compat/linkage-macros.hpp
@@ -7,3 +7,6 @@
# define OTR_GENERIC_EXPORT __attribute__ ((visibility ("default")))
# define OTR_GENERIC_IMPORT
#endif
+
+#define OTR_TEMPLATE_EXPORT template class OTR_GENERIC_EXPORT
+#define OTR_TEMPLATE_IMPORT extern template class OTR_GENERIC_IMPORT