From 309e3291bead8b0b29adb0ddc53c410e969fc31e Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Fri, 20 Nov 2020 13:40:58 -0800 Subject: [PATCH] Include missing stdlib.h malloc()/free() are part of stdlib.h, hence include it where needed. Signed-off-by: Stefan Reinauer --- SerialFlash.c | 1 + board.c | 1 + dpcmd.c | 1 + project.c | 1 + 4 files changed, 4 insertions(+) diff --git a/SerialFlash.c b/SerialFlash.c index 66bfc6a..46a6387 100644 --- a/SerialFlash.c +++ b/SerialFlash.c @@ -4,6 +4,7 @@ #include "project.h" #include "usbdriver.h" #include +#include extern int m_isCanceled; extern int m_bProtectAfterWritenErase; diff --git a/board.c b/board.c index 7c6f5a5..1e3fa57 100644 --- a/board.c +++ b/board.c @@ -2,6 +2,7 @@ #include "FlashCommand.h" #include "project.h" #include "usbdriver.h" +#include #define SerialFlash_FALSE -1 #define SerialFlash_TRUE 1 #define min(a, b) (a > b ? b : a) diff --git a/dpcmd.c b/dpcmd.c index 2f97d25..bbba2f7 100644 --- a/dpcmd.c +++ b/dpcmd.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include diff --git a/project.c b/project.c index e4fb27b..db0670f 100644 --- a/project.c +++ b/project.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include