Fix Windows build due to lack of alloca.h
This commit is contained in:
parent
0075abacbf
commit
d41bb2a7f0
|
@ -43,7 +43,11 @@
|
||||||
#include "traceswo.h"
|
#include "traceswo.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(_WIN32) || defined(__CYGWIN__)
|
||||||
|
#include <malloc.h>
|
||||||
|
#else
|
||||||
#include <alloca.h>
|
#include <alloca.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
static bool cmd_version(target *t, int argc, const char **argv);
|
static bool cmd_version(target *t, int argc, const char **argv);
|
||||||
static bool cmd_help(target *t, int argc, const char **argv);
|
static bool cmd_help(target *t, int argc, const char **argv);
|
||||||
|
|
|
@ -39,7 +39,11 @@
|
||||||
#include "rtt.h"
|
#include "rtt.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(_WIN32) || defined(__CYGWIN__)
|
||||||
|
#include <malloc.h>
|
||||||
|
#else
|
||||||
#include <alloca.h>
|
#include <alloca.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
enum gdb_signal {
|
enum gdb_signal {
|
||||||
GDB_SIGINT = 2,
|
GDB_SIGINT = 2,
|
||||||
|
|
Loading…
Reference in New Issue