From 77d2ad373aa3fe3472a22e483a2ad6bed7e3fe5f Mon Sep 17 00:00:00 2001 From: irungentoo Date: Sun, 18 May 2014 16:07:26 -0400 Subject: Fixed IP_Port packed struct being 1 byte too big on windows. --- toxcore/network.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/toxcore/network.h b/toxcore/network.h index f907b9b5..c9fb4637 100644 --- a/toxcore/network.h +++ b/toxcore/network.h @@ -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 -- cgit v1.2.3