diff options
author | iphydf <iphydf@users.noreply.github.com> | 2017-01-20 17:42:30 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2017-01-22 11:56:02 +0000 |
commit | ce0bf232d1b2c01df056df9a030e10ba5252832f (patch) | |
tree | 394ff60b46856d63737f6431c199b6aa38c90f9c /toxcore/network.h | |
parent | b630121f2f659027e1c9f00cd97087ef34e95677 (diff) |
Add appveyor build for native windows tests.
It doesn't compile, yet. A few changes (like VLA support) need to be made
before we can enable appveyor as a required PR check.
Diffstat (limited to 'toxcore/network.h')
-rw-r--r-- | toxcore/network.h | 8 |
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 | ||
164 | typedef struct { | 170 | typedef 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 | }; |