From 93cd5c5f2f6c23bae83c907b6381dca9492e9eff Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 6 Jul 2017 16:57:28 +0200 Subject: options/value: try "extern template" for code size --- compat/linkage-macros.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'compat/linkage-macros.hpp') 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 -- cgit v1.2.3