2.5-18.1
[glibc.git] / libio / bits / stdio-ldbl.h
blob7a4291225e6d4bc1b6f1095e94f67ad4fb034b6d
1 /* -mlong-double-64 compatibility mode for stdio functions.
2 Copyright (C) 2006 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
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.
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.
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. */
20 #ifndef _STDIO_H
21 # error "Never include <bits/stdio-ldbl.h> directly; use <stdio.h> instead."
22 #endif
24 __BEGIN_NAMESPACE_STD
25 __LDBL_REDIR_DECL (fprintf)
26 __LDBL_REDIR_DECL (printf)
27 __LDBL_REDIR_DECL (sprintf)
28 __LDBL_REDIR_DECL (vfprintf)
29 __LDBL_REDIR_DECL (vprintf)
30 __LDBL_REDIR_DECL (vsprintf)
31 __LDBL_REDIR_DECL (fscanf)
32 __LDBL_REDIR_DECL (scanf)
33 __LDBL_REDIR_DECL (sscanf)
34 __END_NAMESPACE_STD
36 #if defined __USE_BSD || defined __USE_ISOC99 || defined __USE_UNIX98
37 __BEGIN_NAMESPACE_C99
38 __LDBL_REDIR_DECL (snprintf)
39 __LDBL_REDIR_DECL (vsnprintf)
40 __END_NAMESPACE_C99
41 #endif
43 #ifdef __USE_ISOC99
44 __BEGIN_NAMESPACE_C99
45 __LDBL_REDIR_DECL (vfscanf)
46 __LDBL_REDIR_DECL (vsscanf)
47 __LDBL_REDIR_DECL (vscanf)
48 __END_NAMESPACE_C99
49 #endif
51 #ifdef __USE_GNU
52 __LDBL_REDIR_DECL (vdprintf)
53 __LDBL_REDIR_DECL (dprintf)
54 __LDBL_REDIR_DECL (vasprintf)
55 __LDBL_REDIR_DECL (__asprintf)
56 __LDBL_REDIR_DECL (asprintf)
57 __LDBL_REDIR_DECL (obstack_printf)
58 __LDBL_REDIR_DECL (obstack_vprintf)
59 #endif
61 #if __USE_FORTIFY_LEVEL > 0 && !defined __cplusplus
62 __LDBL_REDIR_DECL (__sprintf_chk)
63 __LDBL_REDIR_DECL (__vsprintf_chk)
64 # if defined __USE_BSD || defined __USE_ISOC99 || defined __USE_UNIX98
65 __LDBL_REDIR_DECL (__snprintf_chk)
66 __LDBL_REDIR_DECL (__vsnprintf_chk)
67 # endif
68 # if __USE_FORTIFY_LEVEL > 1
69 __LDBL_REDIR_DECL (__fprintf_chk)
70 __LDBL_REDIR_DECL (__printf_chk)
71 __LDBL_REDIR_DECL (__vfprintf_chk)
72 __LDBL_REDIR_DECL (__vprintf_chk)
73 # endif
74 #endif