Commit 8d2a0cfc authored by Deuce's avatar Deuce 👌🏾

Looks like MSVC has inet_pton().

parent 804b4bf2
Pipeline #729 failed with stage
in 2 minutes and 23 seconds
......@@ -524,7 +524,7 @@ DLLEXPORT char* socket_strerror(int error_number, char* buf, size_t buflen)
#endif
}
#ifdef _WIN32
#if defined(_WIN32) && !defined(_MSVC_VER)
DLLEXPORT int inet_pton(int af, const char *src, void *dst)
{
struct addrinfo hints = {0};
......
......@@ -241,7 +241,7 @@ DLLEXPORT void inet_setaddrport(union xp_sockaddr *addr, uint16_t port);
DLLEXPORT BOOL inet_addrmatch(union xp_sockaddr* addr1, union xp_sockaddr* addr2);
DLLEXPORT char* socket_strerror(int, char*, size_t);
#ifdef _WIN32
#if defined(_WIN32) && !defined(_MSVC_VER)
DLLEXPORT int inet_pton(int af, const char *src, void *dst);
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment