]>
Commit | Line | Data |
---|---|---|
6defecc2 JJ |
1 | // Compatibility symbols for -mlong-double-64 compatibility -*- C++ -*- |
2 | ||
a945c346 | 3 | // Copyright (C) 2006-2024 Free Software Foundation, Inc. |
6defecc2 JJ |
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) |
6defecc2 JJ |
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. | |
6defecc2 | 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/>. | |
6defecc2 | 24 | |
34a2b755 | 25 | #define _GLIBCXX_USE_CXX11_ABI 0 |
6defecc2 | 26 | #include <locale> |
34d35753 | 27 | #include <cmath> |
2019698b | 28 | #include <tr1/functional> |
6defecc2 JJ |
29 | |
30 | #ifdef _GLIBCXX_LONG_DOUBLE_COMPAT | |
31 | ||
32 | #ifdef __LONG_DOUBLE_128__ | |
33 | #error "compatibility-ldbl.cc must be compiled with -mlong-double-64" | |
34 | #endif | |
35 | ||
12ffa228 | 36 | namespace std _GLIBCXX_VISIBILITY(default) |
6defecc2 JJ |
37 | { |
38 | #define C char | |
39 | template class num_get<C, istreambuf_iterator<C> >; | |
40 | template class num_put<C, ostreambuf_iterator<C> >; | |
41 | template class money_get<C, istreambuf_iterator<C> >; | |
42 | template class money_put<C, ostreambuf_iterator<C> >; | |
43 | template const num_put<C>& use_facet<num_put<C> >(const locale&); | |
44 | template const num_get<C>& use_facet<num_get<C> >(const locale&); | |
45 | template const money_put<C>& use_facet<money_put<C> >(const locale&); | |
46 | template const money_get<C>& use_facet<money_get<C> >(const locale&); | |
47 | template bool has_facet<num_put<C> >(const locale&); | |
48 | template bool has_facet<num_get<C> >(const locale&); | |
49 | template bool has_facet<money_put<C> >(const locale&); | |
50 | template bool has_facet<money_get<C> >(const locale&); | |
b3ac43a3 JW |
51 | template const num_put<C>* __try_use_facet<num_put<C> >(const locale&); |
52 | template const num_get<C>* __try_use_facet<num_get<C> >(const locale&); | |
53 | template const money_put<C>* __try_use_facet<money_put<C> >(const locale&); | |
54 | template const money_get<C>* __try_use_facet<money_get<C> >(const locale&); | |
6defecc2 JJ |
55 | #undef C |
56 | #ifdef _GLIBCXX_USE_WCHAR_T | |
57 | #define C wchar_t | |
58 | template class num_get<C, istreambuf_iterator<C> >; | |
59 | template class num_put<C, ostreambuf_iterator<C> >; | |
60 | template class money_get<C, istreambuf_iterator<C> >; | |
61 | template class money_put<C, ostreambuf_iterator<C> >; | |
62 | template const num_put<C>& use_facet<num_put<C> >(const locale&); | |
63 | template const num_get<C>& use_facet<num_get<C> >(const locale&); | |
64 | template const money_put<C>& use_facet<money_put<C> >(const locale&); | |
65 | template const money_get<C>& use_facet<money_get<C> >(const locale&); | |
66 | template bool has_facet<num_put<C> >(const locale&); | |
67 | template bool has_facet<num_get<C> >(const locale&); | |
68 | template bool has_facet<money_put<C> >(const locale&); | |
69 | template bool has_facet<money_get<C> >(const locale&); | |
b3ac43a3 JW |
70 | template const num_put<C>* __try_use_facet<num_put<C> >(const locale&); |
71 | template const num_get<C>* __try_use_facet<num_get<C> >(const locale&); | |
72 | template const money_put<C>* __try_use_facet<money_put<C> >(const locale&); | |
73 | template const money_get<C>* __try_use_facet<money_get<C> >(const locale&); | |
6defecc2 JJ |
74 | #undef C |
75 | #endif | |
76 | } | |
77 | ||
2019698b BK |
78 | // For std::tr1::hash<long double>::operator() |
79 | #define _GLIBCXX_LONG_DOUBLE_COMPAT_IMPL | |
72f1c34b | 80 | #include "hash-long-double-tr1-aux.cc" |
7371aff8 | 81 | |
2019698b BK |
82 | // std::tr1::hash<long double>::operator() |
83 | // and std::hash<long double>::operator() | |
7371aff8 | 84 | // are the same, no need to duplicate them. |
fcb141ac | 85 | extern "C" std::size_t _ZNKSt4hashIeEclEe (long double) |
ea1c2a95 | 86 | _GLIBCXX_PURE __attribute__((alias ("_ZNKSt3tr14hashIeEclEe"))); |
7371aff8 | 87 | |
6defecc2 | 88 | #endif |