Move byte to Crypto++ namespace (Issue 442)

Also see http://www.cryptopp.com/wiki/std::byte and http://github.com/weidai11/cryptopp/issues/442
pull/438/merge
Jeffrey Walton 2017-07-20 09:55:29 -04:00
parent 3485d2180d
commit 00f9818b5d
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 6 additions and 1 deletions

View File

@ -194,10 +194,15 @@ namespace CryptoPP { }
# define __USE_W32_SOCKETS
#endif
typedef unsigned char byte; // put in global namespace to avoid ambiguity with other byte typedefs
// Originally in global namespace to avoid ambiguity with other byte typedefs.
// Moved to Crypto++ namespace due to C++17, std::byte and potential compile problems. Also see
// http://www.cryptopp.com/wiki/std::byte and http://github.com/weidai11/cryptopp/issues/442
// typedef unsigned char byte;
#define CRYPTOPP_NO_GLOBAL_BYTE 1
NAMESPACE_BEGIN(CryptoPP)
typedef unsigned char byte;
typedef unsigned short word16;
typedef unsigned int word32;