]>
Commit | Line | Data |
---|---|---|
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 | ||
37 | using std::abort; | |
38 | using std::atexit; | |
39 | using 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 |
50 | using std::div_t; |
51 | using std::ldiv_t; | |
52 | ||
8081da07 | 53 | using std::abs; |
8081da07 BK |
54 | using std::atof; |
55 | using std::atoi; | |
56 | using std::atol; | |
57 | using std::bsearch; | |
58 | using std::calloc; | |
59 | using std::div; | |
8081da07 BK |
60 | using std::free; |
61 | using std::getenv; | |
62 | using std::labs; | |
63 | using std::ldiv; | |
64 | using std::malloc; | |
8964d2a0 | 65 | #ifdef _GLIBCXX_HAVE_MBSTATE_T |
8081da07 BK |
66 | using std::mblen; |
67 | using std::mbstowcs; | |
68 | using std::mbtowc; | |
8964d2a0 | 69 | #endif // _GLIBCXX_HAVE_MBSTATE_T |
8081da07 BK |
70 | using std::qsort; |
71 | using std::rand; | |
72 | using std::realloc; | |
73 | using std::srand; | |
74 | using std::strtod; | |
75 | using std::strtol; | |
76 | using std::strtoul; | |
77 | using std::system; | |
8964d2a0 | 78 | #ifdef _GLIBCXX_USE_WCHAR_T |
8081da07 BK |
79 | using std::wcstombs; |
80 | using std::wctomb; | |
8964d2a0 | 81 | #endif // _GLIBCXX_USE_WCHAR_T |
af13a7a6 | 82 | #endif |
8081da07 BK |
83 | |
84 | #endif | |
96e19ada | 85 | #endif |