__nan() is not available on Apple M1, replaced by (0.0F/0.0F)

This commit is contained in:
Christian Jullien 2022-11-25 17:08:58 +01:00
parent 312d28b0a8
commit d8329c2d19

View File

@ -160,7 +160,7 @@
#define __builtin_huge_valf() 1e50f
#define __builtin_huge_vall() 1e5000L
# if defined __APPLE__
#define __builtin_nanf(ignored_string) __nan()
#define __builtin_nanf(ignored_string) (0.0F/0.0F)
/* used by floats.h to implement FLT_ROUNDS C99 macro. 1 == to nearest */
#define __builtin_flt_rounds() 1
/* used by _fd_def.h */