diff options
Diffstat (limited to 'nuttx/libxx/libxx_new.cxx')
-rw-r--r-- | nuttx/libxx/libxx_new.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nuttx/libxx/libxx_new.cxx b/nuttx/libxx/libxx_new.cxx index 0563b6580..3158e8605 100644 --- a/nuttx/libxx/libxx_new.cxx +++ b/nuttx/libxx/libxx_new.cxx @@ -1,7 +1,7 @@ //*************************************************************************** // libxx/libxx_new.cxx // -// Copyright (C) 2009 Gregory Nutt. All rights reserved. +// Copyright (C) 2009, 2013 Gregory Nutt. All rights reserved. // Author: Gregory Nutt <gnutt@nuttx.org> // // Redistribution and use in source and binary forms, with or without @@ -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) |