[PATCH] __compar_fn_t
Corinna Vinschen
vinschen@redhat.com
Fri Aug 9 09:21:00 GMT 2013
On Aug 8 12:59, Yaakov (Cygwin/X) wrote:
> The attached patch uses the __compar_fn_t typedef for the function
> pointer types of bsearch, qsort, tsearch and friends, as in glibc.
> This fixes the build of gedit-code-assistance on Cygwin.
>
>
> Yaakov
> Cygwin/X
> 2013-08-08 Yaakov Selkowitz <yselkowitz@...>
>
> * libc/include/search.h (__compar_fn_t): Add typedef.
> (tdelete, tfind, tsearch): Use it.
> * libc/include/stdlib.h (__compar_fn_t): Add typedef.
> (bsearch, qsort): Use it.
The patch is ok, but I'm wondering if this shouldn't be brought to the
attention of the upstream maintainers. __compar_fn_t is not backed by
the standards, nor is it available on the BSDs. Did they plan to run
this tool only on Linux?
Thanks,
Corinna
--
Corinna Vinschen
Cygwin Maintainer
Red Hat
More information about the Newlib
mailing list