This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: math.h


On 31/01/2010 16:31, Søren Holm wrote:
I have just compile newlib 1.18 and I'm wondering why isnanf suddenly is not
declared anymore. I end up figuring out that the patch attached to this email
fixes the problem. Is this an error in newlib?

Careful; <ieeefp.h> disables the isnan and isinf macros (which are required by POSIX) and declares them as functions instead. So <math.h> cannot #include <ieeefp.h> in this way. If you really need these functions, I think you'll need to #include <ieeefp.h> in your code directly.



Yaakov Cygwin/X


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]