summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-12-12 10:16:15 -0500
committerJeffrey Walton <noloader@gmail.com>2018-12-12 10:16:15 -0500
commitb5cf4ff307c3e5e4005093098a948a3e5daa9ce3 (patch)
treea1459ad9ac6a2145d267e31f0b855a973f4d6d14 /config.h
parent131397ba5afd82d6e1b1380d72dc743d7943370c (diff)
downloadcryptopp-git-b5cf4ff307c3e5e4005093098a948a3e5daa9ce3.tar.gz
Remove unneeded TYPE_OF_SOCKLEN_T define.
This should have been removed at GH #208, PR #703.
Diffstat (limited to 'config.h')
-rw-r--r--config.h12
1 files changed, 0 insertions, 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