refs #802 Fixed linker errors for exported explicit template instantiations with Clang on Windows.

This commit is contained in:
Mathew Sutcliffe
2016-11-13 22:23:31 +00:00
committed by Klaus Basan
parent 3c40c1026e
commit 3ab121a593
17 changed files with 127 additions and 101 deletions

View File

@@ -29,13 +29,23 @@
#endif
/*!
* \def BLACKMISC_EXPORT_TEMPLATE
* BlackMisc Template Export Macro
* \def BLACKMISC_EXPORT_DECLARE_TEMPLATE
* BlackMisc Export Explicit Template Declaration Macro
*/
/*!
* \def BLACKMISC_EXPORT_DEFINE_TEMPLATE
* BlackMisc Export Explicit Template Definition Macro
*/
#if defined(Q_OS_WIN) && defined(Q_CC_GNU)
# define BLACKMISC_EXPORT_TEMPLATE BLACKMISC_EXPORT
# define BLACKMISC_EXPORT_DECLARE_TEMPLATE BLACKMISC_EXPORT
# define BLACKMISC_EXPORT_DEFINE_TEMPLATE
#elif defined(Q_OS_WIN) && defined(Q_CC_CLANG)
# define BLACKMISC_EXPORT_DECLARE_TEMPLATE
# define BLACKMISC_EXPORT_DEFINE_TEMPLATE BLACKMISC_EXPORT
#else
# define BLACKMISC_EXPORT_TEMPLATE
# define BLACKMISC_EXPORT_DECLARE_TEMPLATE
# define BLACKMISC_EXPORT_DEFINE_TEMPLATE
#endif
#endif // guard