libstdc++
c++locale_internal.h
Go to the documentation of this file.
1 // Prototypes for GLIBC thread locale __-prefixed functions -*- C++ -*-
2 
3 // Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010
4 // Free Software Foundation, Inc.
5 //
6 // This file is part of the GNU ISO C++ Library. This library is free
7 // software; you can redistribute it and/or modify it under the
8 // terms of the GNU General Public License as published by the
9 // Free Software Foundation; either version 3, or (at your option)
10 // any later version.
11 
12 // This library is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU General Public License for more details.
16 
17 // Under Section 7 of GPL version 3, you are granted additional
18 // permissions described in the GCC Runtime Library Exception, version
19 // 3.1, as published by the Free Software Foundation.
20 
21 // You should have received a copy of the GNU General Public License and
22 // a copy of the GCC Runtime Library Exception along with this program;
23 // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
24 // <http://www.gnu.org/licenses/>.
25 
26 /** @file bits/c++locale_internal.h
27  * This is an internal header file, included by other library headers.
28  * Do not attempt to use it directly. @headername{locale}
29  */
30 
31 // Written by Jakub Jelinek <jakub@redhat.com>
32 
33 #include <bits/c++config.h>
34 #include <clocale>
35 #include <cstdlib>
36 #include <cstring>
37 #include <cstddef>
38 #include <langinfo.h>
39 
40 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
41 
42 extern "C" __typeof(nl_langinfo_l) __nl_langinfo_l;
43 extern "C" __typeof(strcoll_l) __strcoll_l;
44 extern "C" __typeof(strftime_l) __strftime_l;
45 extern "C" __typeof(strtod_l) __strtod_l;
46 extern "C" __typeof(strtof_l) __strtof_l;
47 extern "C" __typeof(strtold_l) __strtold_l;
48 extern "C" __typeof(strxfrm_l) __strxfrm_l;
49 extern "C" __typeof(newlocale) __newlocale;
50 extern "C" __typeof(freelocale) __freelocale;
51 extern "C" __typeof(duplocale) __duplocale;
52 extern "C" __typeof(uselocale) __uselocale;
53 
54 #ifdef _GLIBCXX_USE_WCHAR_T
55 extern "C" __typeof(iswctype_l) __iswctype_l;
56 extern "C" __typeof(towlower_l) __towlower_l;
57 extern "C" __typeof(towupper_l) __towupper_l;
58 extern "C" __typeof(wcscoll_l) __wcscoll_l;
59 extern "C" __typeof(wcsftime_l) __wcsftime_l;
60 extern "C" __typeof(wcsxfrm_l) __wcsxfrm_l;
61 extern "C" __typeof(wctype_l) __wctype_l;
62 #endif
63 
64 #endif // GLIBC 2.3 and later