summaryrefslogtreecommitdiff
path: root/nuttx/libxx/libxx_newa.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/libxx/libxx_newa.cxx')
-rw-r--r--nuttx/libxx/libxx_newa.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/nuttx/libxx/libxx_newa.cxx b/nuttx/libxx/libxx_newa.cxx
index ad7806865..b5b280356 100644
--- a/nuttx/libxx/libxx_newa.cxx
+++ b/nuttx/libxx/libxx_newa.cxx
@@ -39,9 +39,10 @@
#include <nuttx/config.h>
#include <cstddef>
-#include <cstdlib>
#include <debug.h>
+#include "libxx_internal.hxx"
+
//***************************************************************************
// Definitions
//***************************************************************************
@@ -84,7 +85,7 @@ void *operator new[](unsigned int nbytes)
// Perform the allocation
- void *alloc = malloc(nbytes);
+ void *alloc = lib_malloc(nbytes);
#ifdef CONFIG_DEBUG
if (alloc == 0)