summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2014-05-18 16:07:26 -0400
committerirungentoo <irungentoo@gmail.com>2014-05-18 16:07:26 -0400
commit77d2ad373aa3fe3472a22e483a2ad6bed7e3fe5f (patch)
tree6f60bdc3ded49137535225ff1d82d6e3e4c68ef5
parent906969d376244fadcf188c0297df2605bf407dd5 (diff)
Fixed IP_Port packed struct being 1 byte too big on windows.
-rw-r--r--toxcore/network.h6
1 files 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__))
185} 185}
186IP; 186IP;
187 187
188typedef struct __attribute__ ((__packed__)) IP_Port { 188typedef struct __attribute__ ((__packed__)) __attribute__((gcc_struct))
189{
189 IP ip; 190 IP ip;
190 uint16_t port; 191 uint16_t port;
191} IP_Port; 192}
193IP_Port;
192 194
193#define TOX_ENABLE_IPV6_DEFAULT 1 195#define TOX_ENABLE_IPV6_DEFAULT 1
194 196