Bug 2347 - isnan STDC99 fix
Summary: isnan STDC99 fix
Status: RESOLVED FIXED
Alias: None
Product: uClibc
Classification: Unclassified
Component: Standard Compliance (show other bugs)
Version: unspecified
Hardware: All Linux
: P5 major
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-05 13:40 UTC by Henning Heinold
Modified: 2011-01-11 19:00 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
isnan patch (968 bytes, patch)
2010-08-05 13:42 UTC, Henning Heinold
Details

Note You need to log in before you can comment on or make changes to this bug.
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!