From a005f294482d7764c7d4cb3683b015247787f922 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 16 Nov 2017 19:36:59 +0900 Subject: [PATCH] mingw: Fix compile error --- src/crypto_hash.cc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/crypto_hash.cc b/src/crypto_hash.cc index 5ea03341..3a343397 100644 --- a/src/crypto_hash.cc +++ b/src/crypto_hash.cc @@ -4,6 +4,7 @@ #include "crypto_hash.h" #include "crypto_endian.h" +#include "a2functional.h" #include #include @@ -1055,22 +1056,22 @@ std::unique_ptr crypto::hash::create(Algorithms algo) { switch (algo) { case algoMD5: - return make_unique(); + return aria2::make_unique(); case algoSHA1: - return make_unique(); + return aria2::make_unique(); case algoSHA224: - return make_unique(); + return aria2::make_unique(); case algoSHA256: - return make_unique(); + return aria2::make_unique(); case algoSHA384: - return make_unique(); + return aria2::make_unique(); case algoSHA512: - return make_unique(); + return aria2::make_unique(); default: throw std::domain_error("Invalid hash algorithm");