Bug 2347

Summary: isnan STDC99 fix
Product: uClibc Reporter: Henning Heinold <heinold>
Component: Standard ComplianceAssignee: unassigned
Status: RESOLVED FIXED    
Severity: major CC: uclibc-cvs
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:
Attachments: isnan patch

Description Henning Heinold 2010-08-05 13:40:09 UTC
Hi,

isnan is a C99 feature. In the __USE_ISOC99-flag is used to define it.
And the macro expand to private functions __isnanf and __isnan
But in bits/mathcalls.h the flag isn't and the namespace isn't used either.

So we can get the error __isnanf or __isnan implicit declaration.

In bits/mathcalls.h we differ from glibc anyway and denis comment out
the PRIVCALL to __isnan anyway.

The attached patch 

1. removes the PRIVCALL to __isnan entirely, because
   noboy should call it directly from his code
2. sets the _USE_ISOC99-flag and c++ namespace for the isnan PRIVCALL

3. seperates out the BESSEL function, because I didnt looked up if they
   STDC99 too
Comment 1 Henning Heinold 2010-08-05 13:42:12 UTC
Created attachment 2299 [details]
isnan patch
Comment 2 Bernhard Reutner-Fischer 2011-01-11 19:00:09 UTC
Sorry, i apparently forgot to close this one. It was due fixed as 6ff4fcbfe507605b2796eb8e7e44c7e8e4b33a28
Thanks!