* doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
[official-gcc.git] / libstdc++-v3 / include / c_std / bits / std_cstdio.h
bloba4c67d22acd01396264e69232dad3d4b29b759c2
1 // -*- C++ -*- forwarding header.
3 // Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
4 //
5 // This file is part of the GNU ISO C++ Library. This library is free
6 // software; you can redistribute it and/or modify it under the
7 // terms of the GNU General Public License as published by the
8 // Free Software Foundation; either version 2, or (at your option)
9 // any later version.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License along
17 // with this library; see the file COPYING. If not, write to the Free
18 // Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
19 // USA.
21 // As a special exception, you may use this file as part of a free software
22 // library without restriction. Specifically, if other files instantiate
23 // templates or use macros or inline functions from this file, or you compile
24 // this file and link it with other files to produce an executable, this
25 // file does not by itself cause the resulting executable to be covered by
26 // the GNU General Public License. This exception does not however
27 // invalidate any other reasons why the executable file might be covered by
28 // the GNU General Public License.
31 // ISO C++ 14882: 27.8.2 C Library files
34 #ifndef _CPP_CSTDIO
35 #define _CPP_CSTDIO 1
37 #include <bits/c++config.h>
38 #include <bits/std_cstddef.h>
40 #pragma GCC system_header
41 #include <stdio.h>
43 // Get rid of those macros defined in <stdio.h> in lieu of real functions.
44 #undef clearerr
45 #undef fclose
46 #undef feof
47 #undef ferror
48 #undef fflush
49 #undef fgetc
50 #undef fgetpos
51 #undef fgets
52 #undef fopen
53 #undef fprintf
54 #undef fputc
55 #undef fputs
56 #undef fread
57 #undef freopen
58 #undef fscanf
59 #undef fseek
60 #undef fsetpos
61 #undef ftell
62 #undef fwrite
63 #undef getc
64 #undef getchar
65 #undef gets
66 #undef perror
67 #undef printf
68 #undef putc
69 #undef putchar
70 #undef puts
71 #undef remove
72 #undef rename
73 #undef rewind
74 #undef scanf
75 #undef setbuf
76 #undef setvbuf
77 #undef sprintf
78 #undef sscanf
79 #undef tmpfile
80 #undef tmpnam
81 #undef ungetc
82 #undef vfprintf
83 #undef vprintf
84 #undef vsprintf
86 namespace std
88 using ::FILE;
89 using ::fpos_t;
91 using ::clearerr;
92 using ::fclose;
93 using ::feof;
94 using ::ferror;
95 using ::fflush;
96 using ::fgetc;
97 using ::fgetpos;
98 using ::fgets;
99 using ::fopen;
100 using ::fprintf;
101 using ::fputc;
102 using ::fputs;
103 using ::fread;
104 using ::freopen;
105 using ::fscanf;
106 using ::fseek;
107 using ::fsetpos;
108 using ::ftell;
109 using ::fwrite;
110 using ::getc;
111 using ::getchar;
112 using ::gets;
113 using ::perror;
114 using ::printf;
115 using ::putc;
116 using ::putchar;
117 using ::puts;
118 using ::remove;
119 using ::rename;
120 using ::rewind;
121 using ::scanf;
122 using ::setbuf;
123 using ::setvbuf;
124 using ::sprintf;
125 using ::sscanf;
126 using ::tmpfile;
127 using ::tmpnam;
128 using ::ungetc;
129 using ::vfprintf;
130 using ::vprintf;
131 using ::vsprintf;
134 #if _GLIBCPP_USE_C99
136 #undef snprintf
137 #undef vfscanf
138 #undef vscanf
139 #undef vsnprintf
140 #undef vsscanf
142 namespace __gnu_cxx
144 using ::snprintf;
145 using ::vfscanf;
146 using ::vscanf;
147 using ::vsnprintf;
148 using ::vsscanf;
151 namespace std
153 using __gnu_cxx::snprintf;
154 using __gnu_cxx::vfscanf;
155 using __gnu_cxx::vscanf;
156 using __gnu_cxx::vsnprintf;
157 using __gnu_cxx::vsscanf;
159 #endif
161 #endif