* include/stdio.h (feof): Add inlined definition.

(ferror): Ditto.
This commit is contained in:
Danny Smith 2004-02-02 09:18:40 +00:00
parent 9512474d4d
commit a37903bc43
2 changed files with 17 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-02-02 Danny Smith <dannysmith@users.sourceforge.net>
* include/stdio.h (feof): Add inlined definition.
(ferror): Ditto.
2004-02-01 Danny Smith <dannysmith@users.sourceforge.net>
* mingwex/math/ldexpl.c (ldexpl): Call __asm__("fscale")

View File

@ -352,9 +352,20 @@ _CRTIMP int __cdecl fsetpos (FILE*, const fpos_t*);
* Error Functions
*/
_CRTIMP void __cdecl clearerr (FILE*);
_CRTIMP int __cdecl feof (FILE*);
_CRTIMP int __cdecl ferror (FILE*);
#ifdef __cplusplus
inline int __cdecl feof (FILE* __F)
{ return __F->_flag & _IOEOF; }
inline int __cdecl ferror (FILE* __F)
{ return __F->_flag & _IOERR; }
#else
#define feof(__F) ((__F)->_flag & _IOEOF)
#define ferror(__F) ((__F)->_flag & _IOERR)
#endif
_CRTIMP void __cdecl clearerr (FILE*);
_CRTIMP void __cdecl perror (const char*);