Fix build for Clang on Windows with optimizations on.

pull/397/head
RaptorFactor 2017-05-07 06:16:46 -07:00
parent 30033fde77
commit b51386adc0
2 changed files with 2 additions and 2 deletions

View File

@ -154,7 +154,7 @@ template <class T, class BASE> void IteratedHashBase<T, BASE>::TruncatedFinal(by
this->Restart(); // reinit for next use this->Restart(); // reinit for next use
} }
#ifdef __GNUC__ #if defined(__GNUC__) || defined(__clang__)
template class IteratedHashBase<word64, HashTransformation>; template class IteratedHashBase<word64, HashTransformation>;
template class IteratedHashBase<word64, MessageAuthenticationCode>; template class IteratedHashBase<word64, MessageAuthenticationCode>;

View File

@ -169,7 +169,7 @@ protected:
FixedSizeAlignedSecBlock<T_HashWordType, T_BlockSize/sizeof(T_HashWordType), T_StateAligned> m_state; FixedSizeAlignedSecBlock<T_HashWordType, T_BlockSize/sizeof(T_HashWordType), T_StateAligned> m_state;
}; };
#ifndef __GNUC__ #if !defined(__GNUC__) && !defined(__clang__)
CRYPTOPP_DLL_TEMPLATE_CLASS IteratedHashBase<word64, HashTransformation>; CRYPTOPP_DLL_TEMPLATE_CLASS IteratedHashBase<word64, HashTransformation>;
CRYPTOPP_STATIC_TEMPLATE_CLASS IteratedHashBase<word64, MessageAuthenticationCode>; CRYPTOPP_STATIC_TEMPLATE_CLASS IteratedHashBase<word64, MessageAuthenticationCode>;