OSDN Git Service

2009-04-03 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
authorjjohnstn <jjohnstn>
Fri, 3 Apr 2009 22:46:14 +0000 (22:46 +0000)
committerjjohnstn <jjohnstn>
Fri, 3 Apr 2009 22:46:14 +0000 (22:46 +0000)
        * libc/include/stdio.h [__SCLE] (__sgetc_r): Prototype before define
        to avoid a warning with -Wmissing-prototypes.

newlib/ChangeLog
newlib/libc/include/stdio.h

index eec006e..10cccb5 100644 (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.
index 28e590c..e5aac37 100644 (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);