From b5cf4ff307c3e5e4005093098a948a3e5daa9ce3 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Wed, 12 Dec 2018 10:16:15 -0500 Subject: [PATCH] Remove unneeded TYPE_OF_SOCKLEN_T define. This should have been removed at GH #208, PR #703. --- config.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/config.h b/config.h index 500e390a..12bbe03f 100644 --- a/config.h +++ b/config.h @@ -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