blob: d6c28c541f66170a9cd3e38e20c28c2ad8b14a4d [file] [log] [blame]
xf.libdd93d52023-05-12 07:10:14 -07001/* -mlong-double-64 compatibility mode for <wchar.h> functions.
2 Copyright (C) 2006-2016 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, see
17 <http://www.gnu.org/licenses/>. */
18
19#ifndef _WCHAR_H
20# error "Never include <bits/wchar-ldbl.h> directly; use <wchar.h> instead."
21#endif
22
23#if defined __USE_ISOC95 || defined __USE_UNIX98
24__BEGIN_NAMESPACE_C99
25__LDBL_REDIR_DECL (fwprintf);
26__LDBL_REDIR_DECL (wprintf);
27__LDBL_REDIR_DECL (swprintf);
28__LDBL_REDIR_DECL (vfwprintf);
29__LDBL_REDIR_DECL (vwprintf);
30__LDBL_REDIR_DECL (vswprintf);
31# if defined __USE_ISOC99 && !defined __USE_GNU \
32 && !defined __REDIRECT \
33 && (defined __STRICT_ANSI__ || defined __USE_XOPEN2K)
34__LDBL_REDIR1_DECL (fwscanf, __nldbl___isoc99_fwscanf)
35__LDBL_REDIR1_DECL (wscanf, __nldbl___isoc99_wscanf)
36__LDBL_REDIR1_DECL (swscanf, __nldbl___isoc99_swscanf)
37# else
38__LDBL_REDIR_DECL (fwscanf);
39__LDBL_REDIR_DECL (wscanf);
40__LDBL_REDIR_DECL (swscanf);
41# endif
42__END_NAMESPACE_C99
43#endif
44
45#ifdef __USE_ISOC99
46__BEGIN_NAMESPACE_C99
47__LDBL_REDIR1_DECL (wcstold, wcstod);
48# if !defined __USE_GNU && !defined __REDIRECT \
49 && (defined __STRICT_ANSI__ || defined __USE_XOPEN2K)
50__LDBL_REDIR1_DECL (vfwscanf, __nldbl___isoc99_vfwscanf)
51__LDBL_REDIR1_DECL (vwscanf, __nldbl___isoc99_vwscanf)
52__LDBL_REDIR1_DECL (vswscanf, __nldbl___isoc99_vswscanf)
53# else
54__LDBL_REDIR_DECL (vfwscanf);
55__LDBL_REDIR_DECL (vwscanf);
56__LDBL_REDIR_DECL (vswscanf);
57# endif
58__END_NAMESPACE_C99
59#endif
60
61#ifdef __USE_GNU
62__LDBL_REDIR1_DECL (wcstold_l, wcstod_l);
63#endif
64
65#if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function
66__LDBL_REDIR_DECL (__swprintf_chk)
67__LDBL_REDIR_DECL (__vswprintf_chk)
68# if __USE_FORTIFY_LEVEL > 1
69__LDBL_REDIR_DECL (__fwprintf_chk)
70__LDBL_REDIR_DECL (__wprintf_chk)
71__LDBL_REDIR_DECL (__vfwprintf_chk)
72__LDBL_REDIR_DECL (__vwprintf_chk)
73# endif
74#endif