Skip to content

Commit

Permalink
Fixed IP_Port packed struct being 1 byte too big on windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
irungentoo committed May 18, 2014
1 parent 906969d commit 77d2ad3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions toxcore/network.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 77d2ad3

Please sign in to comment.