Remove unneeded TYPE_OF_SOCKLEN_T define.

This should have been removed at GH #208, PR #703.
pull/765/head
Jeffrey Walton 2018-12-12 10:16:15 -05:00
parent 131397ba5a
commit b5cf4ff307
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 0 additions and 12 deletions

View File

@ -217,18 +217,6 @@ namespace CryptoPP { }
#define DOCUMENTED_NAMESPACE_BEGIN(x) namespace x {
#define DOCUMENTED_NAMESPACE_END }
// What is the type of the third parameter to bind?
// For Unix, the new standard is ::socklen_t (typically unsigned int), and the old standard is int.
// Unfortunately there is no way to tell whether or not socklen_t is defined.
// To work around this, TYPE_OF_SOCKLEN_T is a macro so that you can change it from the makefile.
#ifndef TYPE_OF_SOCKLEN_T
# if defined(_WIN32) || defined(__CYGWIN__)
# define TYPE_OF_SOCKLEN_T int
# else
# define TYPE_OF_SOCKLEN_T ::socklen_t
# endif
#endif
// 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