This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
Re: Problems with <tgmath.h>
- To: Daniel Jacobowitz <drow at false dot org>
- Subject: Re: Problems with <tgmath.h>
- From: Andreas Jaeger <aj at suse dot de>
- Date: 16 Dec 1999 12:55:15 +0100
- Cc: libc-alpha at sourceware dot cygnus dot com
- References: <19991214183450.A16184@drow.res.cmu.edu>
>>>>> Daniel Jacobowitz writes:
> More troublesome: <tgmath.h> generates calls to func, funcf, and funcl
> for each math function, but without __USE_MISC || __USE_ISOC9X, funcf
> does not get defined. Also, funcl does not get defined if
> -D__NO_LONG_DOUBLE_MATH, which is always set on powerpc, at least.
> This produces wrong output from calling trunc() on a float without
> __USE_MISC || __USE_ISOC9X, because the float is converted incorrectly.
tgmath.h is part of ISO C99 - therefore you should use _ISOC9X_SOURCE
when including the file.
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.rhein-neckar.de