isinf

Hiroshi Fujishima hiroshi.fujishima@gmail.com
Wed Jul 13 23:17:00 GMT 2005


Eric Botcazou <ebotcazou@libertysurf.fr> writes:

>> The configure script which is included in rrdtool[1] checks whether
>> the system has isinf() as below.
>>
>> #include <math.h>
>> int
>> main ()
>> {
>> float f = 0.0; isinf(f)
>>   ;
>>   return 0;
>> }
>
> The test is clearly fragile.  Assigning the return value of isinf to a 
> variable should be sufficient for 4.0.x at -O0.

Yes, I contact rrdtool maintainer.  Thank you.

-- 
Hiroshi Fujishima



More information about the Gcc mailing list