diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-12-12 10:16:15 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2018-12-12 10:16:15 -0500 |
commit | b5cf4ff307c3e5e4005093098a948a3e5daa9ce3 (patch) | |
tree | a1459ad9ac6a2145d267e31f0b855a973f4d6d14 /config.h | |
parent | 131397ba5afd82d6e1b1380d72dc743d7943370c (diff) | |
download | cryptopp-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.h | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -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
|