]> git.ipfire.org Git - thirdparty/gcc.git/blame - libstdc++-v3/include/c_compatibility/stdlib.h
* postreload.c (reload_cse_simplify): Remove dead code.
[thirdparty/gcc.git] / libstdc++-v3 / include / c_compatibility / stdlib.h
CommitLineData
8081da07
BK
1// -*- C++ -*- compatibility header.
2
818ab71a 3// Copyright (C) 2002-2016 Free Software Foundation, Inc.
8081da07
BK
4//
5// This file is part of the GNU ISO C++ Library. This library is free
6// software; you can redistribute it and/or modify it under the
7// terms of the GNU General Public License as published by the
748086b7 8// Free Software Foundation; either version 3, or (at your option)
8081da07
BK
9// any later version.
10
11// This library is distributed in the hope that it will be useful,
12// but WITHOUT ANY WARRANTY; without even the implied warranty of
13// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14// GNU General Public License for more details.
15
748086b7
JJ
16// Under Section 7 of GPL version 3, you are granted additional
17// permissions described in the GCC Runtime Library Exception, version
18// 3.1, as published by the Free Software Foundation.
8081da07 19
748086b7
JJ
20// You should have received a copy of the GNU General Public License and
21// a copy of the GCC Runtime Library Exception along with this program;
22// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
23// <http://www.gnu.org/licenses/>.
8081da07 24
af13a7a6
BK
25/** @file stdlib.h
26 * This is a Standard C++ Library header.
27 */
8081da07 28
af13a7a6
BK
29#ifndef _GLIBCXX_STDLIB_H
30#define _GLIBCXX_STDLIB_H 1
31
96e19ada
JW
32#if !defined __cplusplus || defined _GLIBCXX_INCLUDE_NEXT_C_HEADERS
33# include_next <stdlib.h>
34#else
35# include <cstdlib>
36
37using std::abort;
38using std::atexit;
39using std::exit;
40#if __cplusplus >= 201103L
41# ifdef _GLIBCXX_HAVE_AT_QUICK_EXIT
42 using std::at_quick_exit;
43# endif
44# ifdef _GLIBCXX_HAVE_QUICK_EXIT
45 using std::quick_exit;
46# endif
47#endif
48
49#if _GLIBCXX_HOSTED
8081da07
BK
50using std::div_t;
51using std::ldiv_t;
52
8081da07 53using std::abs;
8081da07
BK
54using std::atof;
55using std::atoi;
56using std::atol;
57using std::bsearch;
58using std::calloc;
59using std::div;
8081da07
BK
60using std::free;
61using std::getenv;
62using std::labs;
63using std::ldiv;
64using std::malloc;
8964d2a0 65#ifdef _GLIBCXX_HAVE_MBSTATE_T
8081da07
BK
66using std::mblen;
67using std::mbstowcs;
68using std::mbtowc;
8964d2a0 69#endif // _GLIBCXX_HAVE_MBSTATE_T
8081da07
BK
70using std::qsort;
71using std::rand;
72using std::realloc;
73using std::srand;
74using std::strtod;
75using std::strtol;
76using std::strtoul;
77using std::system;
8964d2a0 78#ifdef _GLIBCXX_USE_WCHAR_T
8081da07
BK
79using std::wcstombs;
80using std::wctomb;
8964d2a0 81#endif // _GLIBCXX_USE_WCHAR_T
af13a7a6 82#endif
8081da07
BK
83
84#endif
96e19ada 85#endif