Fix build for Clang on Windows with optimizations on.

pull/444/head
RaptorFactor 2017-05-07 06:16:46 -07:00 committed by Marcel Raad
parent 3af4765e15
commit 1d7f6aa7f5
No known key found for this signature in database
GPG Key ID: 33C416EFAE4D6F02
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -179,7 +179,7 @@ protected:
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_STATIC_TEMPLATE_CLASS IteratedHashBase<word64, MessageAuthenticationCode>;