diff options
Diffstat (limited to 'md2.h')
-rw-r--r-- | md2.h | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -6,7 +6,7 @@ NAMESPACE_BEGIN(CryptoPP) -namespace Weak { +namespace Weak1 { /// <a href="http://www.cryptolounge.org/wiki/MD2">MD2</a> class MD2 : public HashTransformation @@ -30,12 +30,14 @@ private: }; } -#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 |