Fix Windows build due to lack of alloca.h

This commit is contained in:
SId Price 2022-08-06 16:30:58 -06:00 committed by Rachel Mant
parent 0075abacbf
commit d41bb2a7f0
2 changed files with 8 additions and 0 deletions

View File

@ -43,7 +43,11 @@
#include "traceswo.h"
#endif
#if defined(_WIN32) || defined(__CYGWIN__)
#include <malloc.h>
#else
#include <alloca.h>
#endif
static bool cmd_version(target *t, int argc, const char **argv);
static bool cmd_help(target *t, int argc, const char **argv);

View File

@ -39,7 +39,11 @@
#include "rtt.h"
#endif
#if defined(_WIN32) || defined(__CYGWIN__)
#include <malloc.h>
#else
#include <alloca.h>
#endif
enum gdb_signal {
GDB_SIGINT = 2,