From e4295fda977bcbddb3d14d344ba45c19c43c6b28 Mon Sep 17 00:00:00 2001 From: weidai Date: Wed, 4 Mar 2009 09:27:52 +0000 Subject: fix compile on ICC 11 --- adler32.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'adler32.h') diff --git a/adler32.h b/adler32.h index 1cc90ce6..0ed803da 100644 --- a/adler32.h +++ b/adler32.h @@ -14,7 +14,8 @@ public: void Update(const byte *input, size_t length); void TruncatedFinal(byte *hash, size_t size); unsigned int DigestSize() const {return DIGESTSIZE;} - std::string AlgorithmName() const {return "Adler32";} + static const char * StaticAlgorithmName() {return "Adler32";} + std::string AlgorithmName() const {return StaticAlgorithmName();} private: void Reset() {m_s1 = 1; m_s2 = 0;} -- cgit v1.2.1