mirror of
https://github.com/apache/nuttx.git
synced 2026-05-19 20:06:24 +08:00
Addings to stdlib.h must be added to cstdlib too
This commit is contained in:
+16
-2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
+5
-4
@@ -203,6 +203,11 @@ FAR void *calloc(size_t, size_t);
|
||||
/* Arithmetic */
|
||||
|
||||
int abs(int j);
|
||||
long int labs(long int j);
|
||||
#ifdef CONFIG_HAVE_LONG_LONG
|
||||
long long int llabs(long long int j);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_CAN_PASS_STRUCTS
|
||||
div_t div(int numer, int denom);
|
||||
ldiv_t ldiv(long numer, long denom);
|
||||
@@ -210,10 +215,6 @@ ldiv_t ldiv(long numer, long denom);
|
||||
lldiv_t lldiv(long long numer, long long denom);
|
||||
#endif
|
||||
#endif
|
||||
long int labs(long int j);
|
||||
#ifdef CONFIG_HAVE_LONG_LONG
|
||||
long long int llabs(long long int j);
|
||||
#endif
|
||||
|
||||
/* Temporary files */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user