From e9aa1132400cc6c3298ece7bc0f82543d887ace5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reimar=20D=C3=B6ffinger?= Date: Sun, 29 Oct 2023 14:37:50 +0100 Subject: [PATCH] tccdefs.h: Apple target requires __has_builtin definition. Note: I have not been able to create working binaries on macOS 14.1 so far, but at least tcc compiles and produces binaries now... --- include/tccdefs.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/tccdefs.h b/include/tccdefs.h index a02ced1b..8c173f00 100644 --- a/include/tccdefs.h +++ b/include/tccdefs.h @@ -124,6 +124,7 @@ /* avoids usage of GCC/clang specific builtins in libc-headerfiles: */ #define __FINITE_MATH_ONLY__ 1 #define _FORTIFY_SOURCE 0 + #define __has_builtin(x) 0 #elif defined __ANDROID__ #define BIONIC_IOCTL_NO_SIGNEDNESS_OVERLOAD