summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-05-30 16:37:41 -0400
committerJeffrey Walton <noloader@gmail.com>2017-05-30 16:37:41 -0400
commiteb3b27a6a5432b21e8e0bb2abb364096b2dca41e (patch)
tree73eaf4da159a59a9d8cbf5b1c0d3f9c9293398d0 /config.h
parent23448050c0083f026bed98b00742dbd4c4ae72eb (diff)
downloadcryptopp-git-eb3b27a6a5432b21e8e0bb2abb364096b2dca41e.tar.gz
Clear Visual Studio warnings (Issue 412)
Diffstat (limited to 'config.h')
-rw-r--r--config.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/config.h b/config.h
index d21b0d4a..1dec8b4a 100644
--- a/config.h
+++ b/config.h
@@ -732,6 +732,8 @@ NAMESPACE_END
#define CRYPTOPP_EXTERN_DLL_TEMPLATE_CLASS extern class CRYPTOPP_DLL
#elif defined(__BORLANDC__) || defined(__SUNPRO_CC)
#define CRYPTOPP_EXTERN_DLL_TEMPLATE_CLASS template class CRYPTOPP_DLL
+#elif !defined(CRYPTOPP_IMPORTS) && !defined(CRYPTOPP_EXPORTS)
+#define CRYPTOPP_EXTERN_DLL_TEMPLATE_CLASS template class CRYPTOPP_DLL
#else
#define CRYPTOPP_EXTERN_DLL_TEMPLATE_CLASS extern template class CRYPTOPP_DLL
#endif
@@ -746,6 +748,8 @@ NAMESPACE_END
#define CRYPTOPP_EXTERN_STATIC_TEMPLATE_CLASS extern class
#elif defined(__BORLANDC__) || defined(__SUNPRO_CC)
#define CRYPTOPP_EXTERN_STATIC_TEMPLATE_CLASS template class
+#elif !defined(CRYPTOPP_IMPORTS) && !defined(CRYPTOPP_EXPORTS)
+#define CRYPTOPP_EXTERN_STATIC_TEMPLATE_CLASS template class
#else
#define CRYPTOPP_EXTERN_STATIC_TEMPLATE_CLASS extern template class
#endif