diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2014-12-11 17:42:19 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2014-12-11 17:42:19 +0000 |
commit | c6332722d95f98c29fbdac3501464eeb816adfd2 (patch) | |
tree | 4f5b327795ec82e9270e406dfb9cfc2b9799a438 /newlib/libc/include/stdio.h | |
parent | 6f34876e5e81e768cc34547bedee0da2c31d8aae (diff) | |
download | cygnal-c6332722d95f98c29fbdac3501464eeb816adfd2.tar.gz cygnal-c6332722d95f98c29fbdac3501464eeb816adfd2.tar.bz2 cygnal-c6332722d95f98c29fbdac3501464eeb816adfd2.zip |
* libc/include/stdio.h: Fix type signature of __sfeof and __sferror
(and thus feof and ferror) for C++.
Diffstat (limited to 'newlib/libc/include/stdio.h')
-rw-r--r-- | newlib/libc/include/stdio.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/include/stdio.h b/newlib/libc/include/stdio.h index c7d340c5c..620bfbcf2 100644 --- a/newlib/libc/include/stdio.h +++ b/newlib/libc/include/stdio.h @@ -649,8 +649,8 @@ _ELIDABLE_INLINE int __sputc_r(struct _reent *_ptr, int _c, FILE *_p) { #endif #endif -#define __sfeof(p) (((p)->_flags & __SEOF) != 0) -#define __sferror(p) (((p)->_flags & __SERR) != 0) +#define __sfeof(p) ((int)(((p)->_flags & __SEOF) != 0)) +#define __sferror(p) ((int)(((p)->_flags & __SERR) != 0)) #define __sclearerr(p) ((void)((p)->_flags &= ~(__SERR|__SEOF))) #define __sfileno(p) ((p)->_file) |