Skip to content
Snippets Groups Projects
Commit 8d2a0cfc authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Looks like MSVC has inet_pton().

parent 804b4bf2
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #729 failed
...@@ -524,7 +524,7 @@ DLLEXPORT char* socket_strerror(int error_number, char* buf, size_t buflen) ...@@ -524,7 +524,7 @@ DLLEXPORT char* socket_strerror(int error_number, char* buf, size_t buflen)
#endif #endif
} }
#ifdef _WIN32 #if defined(_WIN32) && !defined(_MSVC_VER)
DLLEXPORT int inet_pton(int af, const char *src, void *dst) DLLEXPORT int inet_pton(int af, const char *src, void *dst)
{ {
struct addrinfo hints = {0}; struct addrinfo hints = {0};
......
...@@ -241,7 +241,7 @@ DLLEXPORT void inet_setaddrport(union xp_sockaddr *addr, uint16_t port); ...@@ -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 BOOL inet_addrmatch(union xp_sockaddr* addr1, union xp_sockaddr* addr2);
DLLEXPORT char* socket_strerror(int, char*, size_t); 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); DLLEXPORT int inet_pton(int af, const char *src, void *dst);
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment