summaryrefslogtreecommitdiff
path: root/toxcore/network.h
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2017-01-20 21:16:55 +0000
committeriphydf <iphydf@users.noreply.github.com>2017-01-28 20:49:12 +0000
commit6ae33c16cf9e37fda85d70c78b3c2779eb8ca21a (patch)
tree99c3a8c26e02039b515bb6f57d2797d1cdf77c1d /toxcore/network.h
parent895de7ef26e7617769f2271345e414545c2581f8 (diff)
Add VLA compatibility macro for C89-ish compilers.
Diffstat (limited to 'toxcore/network.h')
-rw-r--r--toxcore/network.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/toxcore/network.h b/toxcore/network.h
index a3b746c9..bcd1abd1 100644
--- a/toxcore/network.h
+++ b/toxcore/network.h
@@ -24,18 +24,13 @@
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
33#ifdef PLAN9 27#ifdef PLAN9
34#include <u.h> // Plan 9 requires this is imported first 28#include <u.h> // Plan 9 requires this is imported first
35// Comment line here to avoid reordering by source code formatters. 29// Comment line here to avoid reordering by source code formatters.
36#include <libc.h> 30#include <libc.h>
37#endif 31#endif
38 32
33#include "ccompat.h"
39#include "logger.h" 34#include "logger.h"
40 35
41#include <stdint.h> 36#include <stdint.h>