diff --git a/iterhash.cpp b/iterhash.cpp index eedd5172..bf287164 100644 --- a/iterhash.cpp +++ b/iterhash.cpp @@ -152,7 +152,7 @@ template void IteratedHashBase::TruncatedFinal(by this->Restart(); // reinit for next use } -#ifdef __GNUC__ +#if defined(__GNUC__) || defined(__clang__) template class IteratedHashBase; template class IteratedHashBase; diff --git a/iterhash.h b/iterhash.h index 5ab38825..d51e155b 100644 --- a/iterhash.h +++ b/iterhash.h @@ -179,7 +179,7 @@ protected: FixedSizeAlignedSecBlock m_state; }; -#ifndef __GNUC__ +#if !defined(__GNUC__) && !defined(__clang__) CRYPTOPP_DLL_TEMPLATE_CLASS IteratedHashBase; CRYPTOPP_STATIC_TEMPLATE_CLASS IteratedHashBase;