From d8329c2d1904eaee7a41ff0a1717ca143892e233 Mon Sep 17 00:00:00 2001 From: Christian Jullien Date: Fri, 25 Nov 2022 17:08:58 +0100 Subject: [PATCH] __nan() is not available on Apple M1, replaced by (0.0F/0.0F) --- include/tccdefs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/tccdefs.h b/include/tccdefs.h index 7d9017d5..01d57ef5 100644 --- a/include/tccdefs.h +++ b/include/tccdefs.h @@ -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 */