1169691Skan// Compatibility symbols for -mlong-double-64 compatibility -*- C++ -*-
2169691Skan
3169691Skan// Copyright (C) 2006
4169691Skan// Free Software Foundation, Inc.
5169691Skan//
6169691Skan// This file is part of the GNU ISO C++ Library.  This library is free
7169691Skan// software; you can redistribute it and/or modify it under the
8169691Skan// terms of the GNU General Public License as published by the
9169691Skan// Free Software Foundation; either version 2, or (at your option)
10169691Skan// any later version.
11169691Skan
12169691Skan// This library is distributed in the hope that it will be useful,
13169691Skan// but WITHOUT ANY WARRANTY; without even the implied warranty of
14169691Skan// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15169691Skan// GNU General Public License for more details.
16169691Skan
17169691Skan// You should have received a copy of the GNU General Public License along
18169691Skan// with this library; see the file COPYING.  If not, write to the Free
19169691Skan// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
20169691Skan// USA.
21169691Skan
22169691Skan// As a special exception, you may use this file as part of a free software
23169691Skan// library without restriction.  Specifically, if other files instantiate
24169691Skan// templates or use macros or inline functions from this file, or you compile
25169691Skan// this file and link it with other files to produce an executable, this
26169691Skan// file does not by itself cause the resulting executable to be covered by
27169691Skan// the GNU General Public License.  This exception does not however
28169691Skan// invalidate any other reasons why the executable file might be covered by
29169691Skan// the GNU General Public License.
30169691Skan
31169691Skan#include <locale>
32169691Skan
33169691Skan#ifdef _GLIBCXX_LONG_DOUBLE_COMPAT
34169691Skan
35169691Skan#ifdef __LONG_DOUBLE_128__
36169691Skan#error "compatibility-ldbl.cc must be compiled with -mlong-double-64"
37169691Skan#endif
38169691Skan
39169691Skannamespace std
40169691Skan{
41169691Skan#define C char
42169691Skan  template class num_get<C, istreambuf_iterator<C> >;
43169691Skan  template class num_put<C, ostreambuf_iterator<C> >;
44169691Skan  template class money_get<C, istreambuf_iterator<C> >;
45169691Skan  template class money_put<C, ostreambuf_iterator<C> >;
46169691Skan  template const num_put<C>& use_facet<num_put<C> >(const locale&);
47169691Skan  template const num_get<C>& use_facet<num_get<C> >(const locale&);
48169691Skan  template const money_put<C>& use_facet<money_put<C> >(const locale&);
49169691Skan  template const money_get<C>& use_facet<money_get<C> >(const locale&);
50169691Skan  template bool has_facet<num_put<C> >(const locale&);
51169691Skan  template bool has_facet<num_get<C> >(const locale&);
52169691Skan  template bool has_facet<money_put<C> >(const locale&);
53169691Skan  template bool has_facet<money_get<C> >(const locale&);
54169691Skan#undef C
55169691Skan#ifdef _GLIBCXX_USE_WCHAR_T
56169691Skan#define C wchar_t
57169691Skan  template class num_get<C, istreambuf_iterator<C> >;
58169691Skan  template class num_put<C, ostreambuf_iterator<C> >;
59169691Skan  template class money_get<C, istreambuf_iterator<C> >;
60169691Skan  template class money_put<C, ostreambuf_iterator<C> >;
61169691Skan  template const num_put<C>& use_facet<num_put<C> >(const locale&);
62169691Skan  template const num_get<C>& use_facet<num_get<C> >(const locale&);
63169691Skan  template const money_put<C>& use_facet<money_put<C> >(const locale&);
64169691Skan  template const money_get<C>& use_facet<money_get<C> >(const locale&);
65169691Skan  template bool has_facet<num_put<C> >(const locale&);
66169691Skan  template bool has_facet<num_get<C> >(const locale&);
67169691Skan  template bool has_facet<money_put<C> >(const locale&);
68169691Skan  template bool has_facet<money_get<C> >(const locale&);
69169691Skan#undef C
70169691Skan#endif
71169691Skan}
72169691Skan
73169691Skan#endif
74