Fix "WSAStringToAddress was not declared in this scope" on Cygwin (Issue 322)

This commit is contained in:
Jeffrey Walton 2016-10-14 03:48:51 -04:00
parent 93a6758fd9
commit 0e82232d1d
No known key found for this signature in database
GPG Key ID: B36AB348921B1838

View File

@ -60,8 +60,8 @@ const int SOCKET_EWOULDBLOCK = EWOULDBLOCK;
#define MAX_ADDRSTRLEN (INET6_ADDRSTRLEN > INET_ADDRSTRLEN ? INET6_ADDRSTRLEN : INET_ADDRSTRLEN)
#if defined(CRYPTOPP_WIN32_AVAILABLE)
// http://stackoverflow.com/a/20816961
// Also see http://stackoverflow.com/a/20816961 and http://github.com/weidai11/cryptopp/issues/322
#if defined(USE_WINDOWS_STYLE_SOCKETS)
int inet_pton(int af, const char *src, void *dst)
{
#if CRYPTOPP_MSC_VERSION