From 1d7f6aa7f5d6615d1c0a7ae92b27123c40ccefb3 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 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;