From a26fa8f6f13745fbe7ae24b5af21c0caa74590bb Mon Sep 17 00:00:00 2001 From: "L. E. Segovia" Date: Sun, 28 Aug 2022 14:37:01 +0000 Subject: [PATCH] target/cortex: include alloca.h instead of malloc.h on *nix systems --- src/target/cortexm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/target/cortexm.c b/src/target/cortexm.c index 1baf1fe..e102f94 100644 --- a/src/target/cortexm.c +++ b/src/target/cortexm.c @@ -42,7 +42,11 @@ #include #include +#if defined(_WIN32) || defined(__CYGWIN__) #include +#else +#include +#endif #include #include