summaryrefslogtreecommitdiff
path: root/toxcore/network.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/network.h')
-rw-r--r--toxcore/network.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/toxcore/network.h b/toxcore/network.h
index e0122b5d..26126a22 100644
--- a/toxcore/network.h
+++ b/toxcore/network.h
@@ -24,6 +24,12 @@
24#ifndef NETWORK_H 24#ifndef NETWORK_H
25#define NETWORK_H 25#define NETWORK_H
26 26
27#if defined(__GNUC__)
28#define GNU_EXTENSION __extension__
29#else
30#define GNU_EXTENSION
31#endif
32
27#ifdef PLAN9 33#ifdef PLAN9
28#include <u.h> // Plan 9 requires this is imported first 34#include <u.h> // Plan 9 requires this is imported first
29// Comment line here to avoid reordering by source code formatters. 35// Comment line here to avoid reordering by source code formatters.
@@ -163,7 +169,7 @@ IP6;
163 169
164typedef struct { 170typedef struct {
165 uint8_t family; 171 uint8_t family;
166 __extension__ union { 172 GNU_EXTENSION union {
167 IP4 ip4; 173 IP4 ip4;
168 IP6 ip6; 174 IP6 ip6;
169 }; 175 };