This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [PATCH] <stdio.h> missing prototypes warning
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: newlib at sourceware dot org
- Date: Fri, 3 Apr 2009 10:28:59 +0200
- Subject: Re: [PATCH] <stdio.h> missing prototypes warning
- References: <49D56BFA.5070709@users.sourceforge.net>
- Reply-to: newlib at sourceware dot org
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