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]: Implement fwide (was Re: swprintf() and friends?)


On Nov  7 15:11, Corinna Vinschen wrote:
> Index: libc/include/wchar.h
> ===================================================================
> RCS file: /cvs/src/src/newlib/libc/include/wchar.h,v
> retrieving revision 1.16
> diff -u -p -r1.16 wchar.h
> --- libc/include/wchar.h	19 Dec 2007 17:33:11 -0000	1.16
> +++ libc/include/wchar.h	7 Nov 2008 14:07:05 -0000
> @@ -90,6 +90,9 @@ long long _EXFUN(_wcstoll_r, (struct _re
>  unsigned long _EXFUN(_wcstoul_r, (struct _reent *, const wchar_t *, wchar_t **, int));
>  unsigned long long _EXFUN(_wcstoull_r, (struct _reent *, const wchar_t *, wchar_t **, int));
>  
> +int _EXFUN (fwide, (FILE *, int));
> +int _EXFUN (_fwide_r, (struct _reent *, FILE *, int));
> +
>  _END_STD_C
>  
>  #endif /* _WCHAR_H_ */

Make that

  int _EXFUN (fwide, (__FILE *, int));
  int _EXFUN (_fwide_r, (struct _reent *, __FILE *, int));

otherwise we would have to include stdio.h from wchar.h.


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]