nano-malloc: Fix redefined compilation warning

When newlib is configured with --enable-newlib-reent-check-verify,
the assert macro is already defined in the nano-mallocr.c compile unit.

Contributed by STMicroelectronics

Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@st.com>
This commit is contained in:
Torbjorn SVENSSON via Newlib 2021-09-03 15:54:10 +00:00 committed by Corinna Vinschen
parent 3d322ac930
commit 522cdab541
1 changed files with 1 additions and 0 deletions

View File

@ -40,6 +40,7 @@
#if DEBUG
#include <assert.h>
#else
#undef assert
#define assert(x) ((void)0)
#endif