1/* -mlong-double-64 compatibility mode for <wchar.h> functions.
2   Copyright (C) 2006, 2007 Free Software Foundation, Inc.
3   This file is part of the GNU C Library.
4
5   The GNU C Library is free software; you can redistribute it and/or
6   modify it under the terms of the GNU Lesser General Public
7   License as published by the Free Software Foundation; either
8   version 2.1 of the License, or (at your option) any later version.
9
10   The GNU C Library is distributed in the hope that it will be useful,
11   but WITHOUT ANY WARRANTY; without even the implied warranty of
12   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13   Lesser General Public License for more details.
14
15   You should have received a copy of the GNU Lesser General Public
16   License along with the GNU C Library; if not, write to the Free
17   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
18   02111-1307 USA.  */
19
20#ifndef _WCHAR_H
21# error "Never include <bits/wchar-ldbl.h> directly; use <wchar.h> instead."
22#endif
23
24#if defined __USE_ISOC95 || defined __USE_UNIX98
25__BEGIN_NAMESPACE_C99
26__LDBL_REDIR_DECL (fwprintf);
27__LDBL_REDIR_DECL (wprintf);
28__LDBL_REDIR_DECL (swprintf);
29__LDBL_REDIR_DECL (vfwprintf);
30__LDBL_REDIR_DECL (vwprintf);
31__LDBL_REDIR_DECL (vswprintf);
32# if defined __USE_ISOC99 && !defined __USE_GNU \
33     && !defined __REDIRECT \
34     && (defined __STRICT_ANSI__ || defined __USE_XOPEN2K)
35__LDBL_REDIR1_DECL (fwscanf, __nldbl___isoc99_fwscanf)
36__LDBL_REDIR1_DECL (wscanf, __nldbl___isoc99_wscanf)
37__LDBL_REDIR1_DECL (swscanf, __nldbl___isoc99_swscanf)
38# else
39__LDBL_REDIR_DECL (fwscanf);
40__LDBL_REDIR_DECL (wscanf);
41__LDBL_REDIR_DECL (swscanf);
42# endif
43__END_NAMESPACE_C99
44#endif
45
46#ifdef __USE_ISOC99
47__BEGIN_NAMESPACE_C99
48__LDBL_REDIR1_DECL (wcstold, wcstod);
49# if !defined __USE_GNU && !defined __REDIRECT \
50     && (defined __STRICT_ANSI__ || defined __USE_XOPEN2K)
51__LDBL_REDIR1_DECL (vfwscanf, __nldbl___isoc99_vfwscanf)
52__LDBL_REDIR1_DECL (vwscanf, __nldbl___isoc99_vwscanf)
53__LDBL_REDIR1_DECL (vswscanf, __nldbl___isoc99_vswscanf)
54# else
55__LDBL_REDIR_DECL (vfwscanf);
56__LDBL_REDIR_DECL (vwscanf);
57__LDBL_REDIR_DECL (vswscanf);
58# endif
59__END_NAMESPACE_C99
60#endif
61
62#ifdef __USE_GNU
63__LDBL_REDIR1_DECL (wcstold_l, wcstod_l);
64#endif
65
66#if __USE_FORTIFY_LEVEL > 0 && defined __extern_always_inline
67__LDBL_REDIR_DECL (__swprintf_chk)
68__LDBL_REDIR_DECL (__vswprintf_chk)
69# if __USE_FORTIFY_LEVEL > 1
70__LDBL_REDIR_DECL (__fwprintf_chk)
71__LDBL_REDIR_DECL (__wprintf_chk)
72__LDBL_REDIR_DECL (__vfwprintf_chk)
73__LDBL_REDIR_DECL (__vwprintf_chk)
74# endif
75#endif
76