svn commit: r253215 - head/lib/msun/src

Tijl Coosemans tijl at coosemans.org
Thu Jul 11 20:27:50 UTC 2013


On 2013-07-11 22:03, Tijl Coosemans wrote:
> On 2013-07-11 21:36, David Chisnall wrote:
>> On 11 Jul 2013, at 19:52, Tijl Coosemans <tijl at coosemans.org> wrote:
>>>> @@ -227,8 +250,6 @@ double	expm1(double);
>>>> double	fma(double, double, double);
>>>> double	hypot(double, double);
>>>> int	ilogb(double) __pure2;
>>>> -int	(isinf)(double) __pure2;
>>>> -int	(isnan)(double) __pure2;
>>>
>>> I think they should stay for the C90 case.
>>
>> That would completely defeat the point of this entire exercise and be
>> redundant unless we aim to support a compiler that only supports C90
>> and no GNU extensions, in which case you'll hit errors in cdefs.h,
>> long before you get to this point in an include.
> 
> isnan(double) is part of SUSv2. It should be visible when compiling with
> -D_XOPEN_SOURCE=500. I think you need something like this:
> 
> #if (__BSD_VISIBLE || __XSI_VISIBLE <= 500) && __ISO_C_VISIBLE < 1999
> int	isinf(double) __pure2;
> int	isnan(double) __pure2;
> #endif

Actually this:

#if (__BSD_VISIBLE || (defined(__XSI_VISIBLE) && __XSI_VISIBLE <= 500)) && __ISO_C_VISIBLE < 1999



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20130711/9c0d0e95/attachment.sig>


More information about the svn-src-all mailing list