From d5c2286093d51a7cd8e4f2e1448473b5545001ea Mon Sep 17 00:00:00 2001 From: weidai Date: Fri, 4 May 2007 15:10:50 +0000 Subject: use Weak1 namespace git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@330 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- md5.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'md5.h') diff --git a/md5.h b/md5.h index 944a4ee..73ec532 100644 --- a/md5.h +++ b/md5.h @@ -5,7 +5,7 @@ NAMESPACE_BEGIN(CryptoPP) -namespace Weak { +namespace Weak1 { //! MD5 class MD5 : public IteratedHashWithStaticTransform @@ -17,12 +17,14 @@ public: }; } -#ifndef CRYPTOPP_ENABLE_NAMESPACE_WEAK -using namespace Weak; +#if CRYPTOPP_ENABLE_NAMESPACE_WEAK >= 1 +namespace Weak {using namespace Weak1;} // import Weak1 into CryptoPP::Weak +#else +using namespace Weak1; // import Weak1 into CryptoPP with warning #ifdef __GNUC__ -#warning "You may be using a weak algorithm that has been retained for backwards compatibility. Please define CRYPTOPP_ENABLE_NAMESPACE_WEAK and prepend the class name with 'Weak::' to remove this warning." +#warning "You may be using a weak algorithm that has been retained for backwards compatibility. Please '#define CRYPTOPP_ENABLE_NAMESPACE_WEAK 1' before including this .h file and prepend the class name with 'Weak::' to remove this warning." #else -#pragma message("You may be using a weak algorithm that has been retained for backwards compatibility. Please define CRYPTOPP_ENABLE_NAMESPACE_WEAK and prepend the class name with 'Weak::' to remove this warning.") +#pragma message("You may be using a weak algorithm that has been retained for backwards compatibility. Please '#define CRYPTOPP_ENABLE_NAMESPACE_WEAK 1' before including this .h file and prepend the class name with 'Weak::' to remove this warning.") #endif #endif -- cgit v1.2.1