diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2009-04-03 22:46:15 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2009-04-03 22:46:15 +0000 |
commit | d74c61c2be2153174cfbcafa451e79b3ca51153f (patch) | |
tree | 833944e64ac627459e67a0997b267b218a9b0cbe | |
parent | 0463fc624cb42dd2b766ea02b65a62abbf0a59ad (diff) | |
download | cygnal-d74c61c2be2153174cfbcafa451e79b3ca51153f.tar.gz cygnal-d74c61c2be2153174cfbcafa451e79b3ca51153f.tar.bz2 cygnal-d74c61c2be2153174cfbcafa451e79b3ca51153f.zip |
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.
-rw-r--r-- | newlib/ChangeLog | 5 | ||||
-rw-r--r-- | newlib/libc/include/stdio.h | 2 |
2 files changed, 7 insertions, 0 deletions
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 <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. 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); |