diff --git a/newlib/ChangeLog b/newlib/ChangeLog index eec006e96..10cccb56f 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2009-04-03 Yaakov Selkowitz + + * libc/include/stdio.h [__SCLE] (__sgetc_r): Prototype before define + to avoid a warning with -Wmissing-prototypes. + 2009-04-03 Ken Werner * libc/machine/spu/mmap_ea.c (mmap_ea): Check length argument. diff --git a/newlib/libc/include/stdio.h b/newlib/libc/include/stdio.h index 28e590cfc..e5aac375e 100644 --- a/newlib/libc/include/stdio.h +++ b/newlib/libc/include/stdio.h @@ -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);