mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 12:10:13 +01:00
lib/libm_dbl: Allow building when DBL_EPSILON is defined in <float.h>.
This is the case in arm-none-eabi-gcc 14.2.1 (debian trixie).
This fixes a diagnostic like:
../../lib/libm_dbl/libm.h:92:9: error:
"DBL_EPSILON" redefined [-Werror]
/usr/lib/gcc/arm-none-eabi/14.2.1/include/float.h:114:9: note:
this is the location of the previous definition
when building MPS2_AN500 (qemu port).
Signed-off-by: Jeff Epler <jepler@unpythonic.net>
This commit is contained in:
committed by
Damien George
parent
007f127a61
commit
2af0c52a91
@@ -89,7 +89,9 @@ do { \
|
||||
(d) = __u.f; \
|
||||
} while (0)
|
||||
|
||||
#if !defined(DBL_EPSILON)
|
||||
#define DBL_EPSILON 2.22044604925031308085e-16
|
||||
#endif
|
||||
|
||||
int __rem_pio2(double, double*);
|
||||
int __rem_pio2_large(double*, double*, int, int, int);
|
||||
|
||||
Reference in New Issue
Block a user