This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] <stdio.h> missing prototypes warning


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]