d068332b88
Code is from cxx.uclibc.org, modified by catty to implement c++17 features
72 lines
1.5 KiB
Plaintext
72 lines
1.5 KiB
Plaintext
/* Copyright (C) 2005 Garrett A. Kajmowicz
|
|
|
|
This file is part of the uClibc++ Library.
|
|
This library is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU Lesser General Public
|
|
License as published by the Free Software Foundation; either
|
|
version 2.1 of the License, or (at your option) any later version.
|
|
|
|
This library is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Lesser General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
License along with this library; if not, write to the Free Software
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
*/
|
|
|
|
#include <stdlib.h>
|
|
#include <basic_definitions>
|
|
|
|
#ifndef __HEADER_CSTDLIB
|
|
#define __HEADER_CSTDLIB 1
|
|
|
|
|
|
namespace std{
|
|
using ::abort;
|
|
using ::abs;
|
|
using ::atexit;
|
|
using ::atol;
|
|
using ::atof;
|
|
using ::atoi;
|
|
using ::bsearch;
|
|
using ::calloc;
|
|
using ::div;
|
|
using ::exit;
|
|
using ::free;
|
|
using ::getenv;
|
|
using ::labs;
|
|
using ::ldiv;
|
|
using ::malloc;
|
|
using ::qsort;
|
|
using ::rand;
|
|
using ::realloc;
|
|
using ::srand;
|
|
using ::strtod;
|
|
using ::strtol;
|
|
using ::strtoul;
|
|
using ::system;
|
|
#ifdef __UCLIBCXX_HAS_WCHAR__
|
|
using ::mblen;
|
|
using ::mbstowcs;
|
|
using ::mbtowc;
|
|
using ::wctomb;
|
|
using ::wcstombs;
|
|
#endif
|
|
|
|
inline long abs(long i){
|
|
return labs(i);
|
|
}
|
|
|
|
inline ldiv_t div(long i, long j){
|
|
return ldiv(i, j);
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|