* include/stdio.h (feof): Add inlined definition.
(ferror): Ditto.
This commit is contained in:
parent
9512474d4d
commit
a37903bc43
@ -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")
|
||||
|
@ -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*);
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user