Skip to content

Commit fd9d89a

Browse files
committed
retarget - fix uvisor header inclusion
1 parent 9111aa4 commit fd9d89a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

hal/common/retarget.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -480,10 +480,9 @@ extern "C" WEAK void __cxa_pure_virtual(void) {
480480
#endif
481481

482482
#if defined(TOOLCHAIN_GCC)
483-
/* uVisor wraps malloc_r, realloc_r and free_r, but not calloc_r! */
484-
#ifndef FEATURE_UVISOR
485-
486483

484+
#ifdef FEATURE_UVISOR
485+
#include "uvisor-lib/uvisor-lib.h"
487486
#endif/* FEATURE_UVISOR */
488487

489488

0 commit comments

Comments
 (0)