[PATCH] Add <tgmath.h>
Yaakov (Cygwin/X)
yselkowitz@users.sourceforge.net
Tue Jan 10 00:12:00 GMT 2012
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()
Yaakov
Cygwin/X
More information about the Newlib
mailing list