From b51386adc0b5cab7b52aef0cd7ee88bac225a2a0 Mon Sep 17 00:00:00 2001 From: RaptorFactor Date: Sun, 7 May 2017 06:16:46 -0700 Subject: [PATCH] Fix build for Clang on Windows with optimizations on. --- iterhash.cpp | 2 +- iterhash.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/iterhash.cpp b/iterhash.cpp index 722d4f77..dbd7412e 100644 --- a/iterhash.cpp +++ b/iterhash.cpp @@ -154,7 +154,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 bdfa05ab..d1a84d93 100644 --- a/iterhash.h +++ b/iterhash.h @@ -169,7 +169,7 @@ protected: FixedSizeAlignedSecBlock m_state; }; -#ifndef __GNUC__ +#if !defined(__GNUC__) && !defined(__clang__) CRYPTOPP_DLL_TEMPLATE_CLASS IteratedHashBase; CRYPTOPP_STATIC_TEMPLATE_CLASS IteratedHashBase;