target/cortex: include alloca.h instead of malloc.h on *nix systems

This commit is contained in:
L. E. Segovia 2022-08-28 14:37:01 +00:00 committed by Rachel Mant
parent bb058d8f35
commit a26fa8f6f1
1 changed files with 4 additions and 0 deletions

View File

@ -42,7 +42,11 @@
#include <string.h>
#include <assert.h>
#if defined(_WIN32) || defined(__CYGWIN__)
#include <malloc.h>
#else
#include <alloca.h>
#endif
#include <stdio.h>
#include <unistd.h>