[PATCH]: Implement fwide (was Re: swprintf() and friends?)

Corinna Vinschen vinschen@redhat.com
Fri Nov 7 17:51:00 GMT 2008


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



More information about the Newlib mailing list