Fixed IP_Port packed struct being 1 byte too big on windows.

This commit is contained in:
irungentoo 2014-05-18 16:07:26 -04:00
parent 906969d376
commit 77d2ad373a
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98

View File

@ -185,10 +185,12 @@ typedef struct __attribute__ ((__packed__))
}
IP;
typedef struct __attribute__ ((__packed__)) IP_Port {
typedef struct __attribute__ ((__packed__)) __attribute__((gcc_struct))
{
IP ip;
uint16_t port;
} IP_Port;
}
IP_Port;
#define TOX_ENABLE_IPV6_DEFAULT 1