summaryrefslogtreecommitdiffstats
path: root/newlib/libc
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2009-04-03 22:46:15 +0000
committerJeff Johnston <jjohnstn@redhat.com>2009-04-03 22:46:15 +0000
commitd74c61c2be2153174cfbcafa451e79b3ca51153f (patch)
tree833944e64ac627459e67a0997b267b218a9b0cbe /newlib/libc
parent0463fc624cb42dd2b766ea02b65a62abbf0a59ad (diff)
downloadcygnal-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.
Diffstat (limited to 'newlib/libc')
-rw-r--r--newlib/libc/include/stdio.h2
1 files changed, 2 insertions, 0 deletions
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);