This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [PATCH] Add <tgmath.h>
On Jan 9 18:11, Yaakov (Cygwin/X) wrote:
> On Mon, 2012-01-09 at 11:34 +0100, Corinna Vinschen wrote:
> > On Dec 29 23:47, Yaakov (Cygwin/X) wrote:
> > > C99 and POSIX.1-2001 introduced the <tgmath.h> header:
> > >
> > > http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/tgmath.h.html
> > >
> > > The attached header is based on FreeBSD's with the necessary
> > > modifications for newlib. Also attached is an STC, tested on Cygwin
> >
> > Can you please outline what changes were required for newlib?
>
> FYI the original is here:
>
> http://svnweb.freebsd.org/base/head/include/tgmath.h?view=markup
>
> My changes were:
>
> * The #ifdef log2 block (to avoid a redefinition warning)
>
> * Reworded the GCC version check due to use of a FreeBSD-specific macro
>
> * Double-underline prefixed all variables
>
> * The !_LDBL_EQ_DBL section
>
> * Commented out nexttoward()
Thank you. Please check in.
Corinna
--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat