Addings to stdlib.h must be added to cstdlib too

This commit is contained in:
Gregory Nutt
2015-08-14 12:04:57 -06:00
parent eb19e0c0e2
commit 8f7453b5ec
2 changed files with 21 additions and 6 deletions
+16 -2
View File
@@ -1,7 +1,7 @@
//***************************************************************************
// include/cxx/cstdlib
//
// Copyright (C) 2009, 2012 Gregory Nutt. All rights reserved.
// Copyright (C) 2009, 2012, 2015 Gregory Nutt. All rights reserved.
// Author: Gregory Nutt <gnutt@nuttx.org>
//
// Redistribution and use in source and binary forms, with or without
@@ -100,15 +100,29 @@ namespace std
using ::calloc;
using ::mallinfo;
// Misc.
// Arithmetic
using ::abs;
using ::labs;
#ifdef CONFIG_HAVE_LONG_LONG
using ::llabs;
#endif
#ifdef CONFIG_CAN_PASS_STRUCTS
using ::div;
using ::ldiv;
#ifdef CONFIG_HAVE_LONG_LONG
using ::lldiv;
#endif
#endif
// Temporary files
using ::mktemp;
using ::mkstemp;
// Sorting
using ::qsort;
}