[PATCH] <stdio.h> missing prototypes warning
Corinna Vinschen
vinschen@redhat.com
Fri Apr 3 12:19:00 GMT 2009
On Apr 2 20:52, Yaakov S wrote:
> Index: ../newlib/libc/include/stdio.h
> ===================================================================
> RCS file: /cvs/src/src/newlib/libc/include/stdio.h,v
> retrieving revision 1.55
> diff -u -r1.55 stdio.h
> --- libc/include/stdio.h 14 Mar 2009 12:14:08 -0000 1.55
> +++ libc/include/stdio.h 3 Apr 2009 01:48:09 -0000
> @@ -612,6 +612,8 @@
> #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);
Since we have inline functions in other headers as well (in Cygwin
for instance asm/byteorder.h), wouldn't it make sense to move the
_ELIDABLE_INLINE to _ansi.h and just use it from there?
Corinna
--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat
More information about the Newlib
mailing list