That might be because gcc has its own float.h:

/mingw32/lib/gcc/i686-w64-mingw32/6.2.1/include/float.h:113:#define FLT_EPSILON 
__FLT_EPSILON__    

------------------                               
Best regards,
lh_mouse
2016-12-20

-------------------------------------------------------------
发件人:niXman <[email protected]>
发送日期:2016-12-20 19:38
收件人:mingw-w64-public
抄送:
主题:Re: [Mingw-w64-public] FLT_EPSILON missing

Vincent Torri 2016-12-20 09:04:
> Hello
Hi,

> it seems that  FLT_EPSILON and DBL_EPSILON are missing in float.h. at
> least, i can't find it here :
> 
> https://sourceforge.net/p/mingw-w64/mingw-w64/ci/master/tree/mingw-w64-headers/crt/float.h
> 
> for reference, see :
> 
> https://msdn.microsoft.com/fr-fr/library/k15zsh48.aspx
> 
> can this be added ?

This is strange because just now I test it using i686-6.2.0-posix-dwarf 
and all works fine.

My example:

#include <float.h>
#include <stdio.h>

int main() {
        printf("%g\n", FLT_EPSILON);
        printf("%g\n", DBL_EPSILON);
}

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public



------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to