diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-02-14 20:51:55 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-02-14 20:51:55 +0000 |
commit | 35f13ef51dbf99c3d45d04f572e9e88795df7ae6 (patch) | |
tree | 8213605775c5f749fdabe683fbdea9106a6c32c1 /toxcore/ccompat.h | |
parent | 17a0b617f299c34563960bd4e9ed9a88e76ba92f (diff) |
Get rid of the only GNU extension we used.
Diffstat (limited to 'toxcore/ccompat.h')
-rw-r--r-- | toxcore/ccompat.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/toxcore/ccompat.h b/toxcore/ccompat.h index dfbfe3eb..90db8bc6 100644 --- a/toxcore/ccompat.h +++ b/toxcore/ccompat.h | |||
@@ -4,13 +4,6 @@ | |||
4 | #ifndef CCOMPAT_H | 4 | #ifndef CCOMPAT_H |
5 | #define CCOMPAT_H | 5 | #define CCOMPAT_H |
6 | 6 | ||
7 | // Marking GNU extensions to avoid warnings. | ||
8 | #if defined(__GNUC__) | ||
9 | #define GNU_EXTENSION __extension__ | ||
10 | #else | ||
11 | #define GNU_EXTENSION | ||
12 | #endif | ||
13 | |||
14 | // Variable length arrays. | 7 | // Variable length arrays. |
15 | // VLA(type, name, size) allocates a variable length array with automatic | 8 | // VLA(type, name, size) allocates a variable length array with automatic |
16 | // storage duration. VLA_SIZE(name) evaluates to the runtime size of that array | 9 | // storage duration. VLA_SIZE(name) evaluates to the runtime size of that array |