diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-07-06 16:57:28 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-07-06 16:57:28 +0200 |
commit | 93cd5c5f2f6c23bae83c907b6381dca9492e9eff (patch) | |
tree | b19bb638d268169be6625d8dea69e867b1ae4876 /compat/linkage-macros.hpp | |
parent | 06d9c2b77ac30250e1abba11b2e2a40c4ed4803a (diff) |
options/value: try "extern template" for code size
Diffstat (limited to 'compat/linkage-macros.hpp')
-rw-r--r-- | compat/linkage-macros.hpp | 3 |
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 |