diff options
Diffstat (limited to 'toxcore/ccompat.h')
-rw-r--r-- | toxcore/ccompat.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/toxcore/ccompat.h b/toxcore/ccompat.h index b70850d2..f4aa1d89 100644 --- a/toxcore/ccompat.h +++ b/toxcore/ccompat.h | |||
@@ -22,13 +22,13 @@ | |||
22 | // Emulation using alloca. | 22 | // Emulation using alloca. |
23 | #ifdef _WIN32 | 23 | #ifdef _WIN32 |
24 | #include <malloc.h> | 24 | #include <malloc.h> |
25 | #elif defined(__FreeBSD__) | 25 | #elif defined(__linux__) |
26 | #include <alloca.h> | ||
27 | #else | ||
26 | #include <stdlib.h> | 28 | #include <stdlib.h> |
27 | #if !defined(alloca) && defined(__GNUC__) | 29 | #if !defined(alloca) && defined(__GNUC__) |
28 | #define alloca __builtin_alloca | 30 | #define alloca __builtin_alloca |
29 | #endif | 31 | #endif |
30 | #else | ||
31 | #include <alloca.h> | ||
32 | #endif | 32 | #endif |
33 | 33 | ||
34 | #define VLA(type, name, size) \ | 34 | #define VLA(type, name, size) \ |