[PATCH] <stdio.h> missing prototypes warning

Jeff Johnston jjohnstn@redhat.com
Fri Apr 3 22:25:00 GMT 2009


Corinna Vinschen wrote:
> 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?
>
>   
Yes, feel free.
> Corinna
>
>   



More information about the Newlib mailing list