diff options
author | weidai <weidai11@users.noreply.github.com> | 2007-05-04 15:10:50 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2007-05-04 15:10:50 +0000 |
commit | 5ee13b48aacba73bd46eb3ce6bdc1328c709cdbc (patch) | |
tree | f27ba515a537694e503655577430ff6ce5d283f9 /md4.h | |
parent | afa89ae9818c260d4c2149731c6972cee1a01bed (diff) | |
download | cryptopp-git-5ee13b48aacba73bd46eb3ce6bdc1328c709cdbc.tar.gz |
use Weak1 namespace
Diffstat (limited to 'md4.h')
-rw-r--r-- | md4.h | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -5,7 +5,7 @@ NAMESPACE_BEGIN(CryptoPP) -namespace Weak { +namespace Weak1 { //! <a href="http://www.weidai.com/scan-mirror/md.html#MD4">MD4</a> /*! \warning MD4 is considered insecure, and should not be used @@ -19,12 +19,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 |