2009-04-03 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>

* libc/include/stdio.h [__SCLE] (__sgetc_r): Prototype before define
        to avoid a warning with -Wmissing-prototypes.
This commit is contained in:
Jeff Johnston 2009-04-03 22:46:15 +00:00
parent 0463fc624c
commit d74c61c2be
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2009-04-03 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
* libc/include/stdio.h [__SCLE] (__sgetc_r): Prototype before define
to avoid a warning with -Wmissing-prototypes.
2009-04-03 Ken Werner <ken.werner@de.ibm.com>
* libc/machine/spu/mmap_ea.c (mmap_ea): Check length argument.

View File

@ -612,6 +612,8 @@ FILE *_EXFUN(_fopencookie_r,(struct _reent *, void *__cookie,
#define _ELIDABLE_INLINE __inline__
#endif
_ELIDABLE_INLINE int __sgetc_r(struct _reent *__ptr, FILE *__p);
_ELIDABLE_INLINE int __sgetc_r(struct _reent *__ptr, FILE *__p)
{
int __c = __sgetc_raw_r(__ptr, __p);