Mercurial > hg > octave-nkf > gnulib-hg
comparison lib/stdio.in.h @ 9301:98e1721b4e40
New modules 'fopen' and 'freopen'.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 07 Oct 2007 04:46:57 +0200 |
parents | 9857038c7b89 |
children | c4fa39bf5223 |
comparison
equal
deleted
inserted
replaced
9300:da8b529f93ee | 9301:98e1721b4e40 |
---|---|
208 extern int asprintf (char **result, const char *format, ...) | 208 extern int asprintf (char **result, const char *format, ...) |
209 __attribute__ ((__format__ (__printf__, 2, 3))); | 209 __attribute__ ((__format__ (__printf__, 2, 3))); |
210 extern int vasprintf (char **result, const char *format, va_list args) | 210 extern int vasprintf (char **result, const char *format, va_list args) |
211 __attribute__ ((__format__ (__printf__, 2, 0))); | 211 __attribute__ ((__format__ (__printf__, 2, 0))); |
212 # endif | 212 # endif |
213 #endif | |
214 | |
215 #if @GNULIB_FOPEN@ | |
216 # if @REPLACE_FOPEN@ | |
217 # define fopen rpl_fopen | |
218 extern FILE * fopen (const char *filename, const char *mode); | |
219 # endif | |
220 #elif defined GNULIB_POSIXCHECK | |
221 # undef fopen | |
222 # define fopen(f,m) \ | |
223 (GL_LINK_WARNING ("fopen on Win32 platforms is not POSIX compatible - " \ | |
224 "use gnulib module fopen for portability"), \ | |
225 fopen (f, m)) | |
226 #endif | |
227 | |
228 #if @GNULIB_FREOPEN@ | |
229 # if @REPLACE_FREOPEN@ | |
230 # define freopen rpl_freopen | |
231 extern FILE * freopen (const char *filename, const char *mode, FILE *stream); | |
232 # endif | |
233 #elif defined GNULIB_POSIXCHECK | |
234 # undef freopen | |
235 # define freopen(f,m,s) \ | |
236 (GL_LINK_WARNING ("freopen on Win32 platforms is not POSIX compatible - " \ | |
237 "use gnulib module freopen for portability"), \ | |
238 freopen (f, m, s)) | |
213 #endif | 239 #endif |
214 | 240 |
215 #if @GNULIB_FSEEKO@ | 241 #if @GNULIB_FSEEKO@ |
216 # if @REPLACE_FSEEKO@ | 242 # if @REPLACE_FSEEKO@ |
217 /* Provide fseek, fseeko functions that are aware of a preceding | 243 /* Provide fseek, fseeko functions that are aware of a preceding |