Skip to content

Commit

Permalink
Update Socket.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
MAJigsaw77 authored Sep 6, 2024
1 parent 08f88ff commit 89c00e8
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/hx/libs/std/Socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@

#ifdef __GNUC__
// Mingw / gcc on windows
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0501
#endif
#include <winsock2.h>
#include <ws2tcpip.h>
#else
Expand All @@ -19,14 +21,9 @@
#include <Ws2tcpip.h>
#endif


#define DYNAMIC_INET_FUNCS 1
typedef WINSOCK_API_LINKAGE INT (WSAAPI *inet_pton_func)( INT Family, PCSTR pszAddrString, PVOID pAddrBuf);
typedef WINSOCK_API_LINKAGE PCSTR (WSAAPI *inet_ntop_func)(INT Family, PVOID pAddr, PSTR pStringBuf, size_t StringBufSize);




typedef INT (WSAAPI *inet_pton_func)( INT Family, PCSTR pszAddrString, PVOID pAddrBuf);
typedef PCSTR (WSAAPI *inet_ntop_func)(INT Family, PVOID pAddr, PSTR pStringBuf, size_t StringBufSize);

# define FDSIZE(n) (sizeof(u_int) + (n) * sizeof(SOCKET))
# define SHUT_WR SD_SEND
Expand Down

0 comments on commit 89c00e8

Please sign in to comment.