Add definition of in_addr_t for Windows build
This commit is contained in:
parent
63042e98f8
commit
530fbba1ed
@ -20,12 +20,14 @@
|
|||||||
|
|
||||||
#ifdef __MINGW32__
|
#ifdef __MINGW32__
|
||||||
#include <_bsd_types.h>
|
#include <_bsd_types.h>
|
||||||
|
typedef uint32_t in_addr_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
typedef unsigned char u_char;
|
typedef unsigned char u_char;
|
||||||
typedef unsigned short u_short;
|
typedef unsigned short u_short;
|
||||||
typedef unsigned int u_int;
|
typedef unsigned int u_int;
|
||||||
|
typedef uint32_t in_addr_t;
|
||||||
|
|
||||||
#include <basetsd.h>
|
#include <basetsd.h>
|
||||||
typedef SSIZE_T ssize_t;
|
typedef SSIZE_T ssize_t;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user