From f7d2d04d96d408b1137d04a15ca9c2152154047b Mon Sep 17 00:00:00 2001 From: herman ten brugge Date: Tue, 22 Dec 2020 18:53:29 +0100 Subject: [PATCH] Fix include/tccdefs.h Remove __amd64__ for FreeBD (32 bits version did not work any more) Add __APPLE__ at HAVE MALLOC_REDIR so bound checking works on apple --- include/tccdefs.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/tccdefs.h b/include/tccdefs.h index 109b53df..92564d85 100644 --- a/include/tccdefs.h +++ b/include/tccdefs.h @@ -72,7 +72,6 @@ #define __GNUC_PATCHLEVEL__ 0 #define __GNUC_STDC_INLINE__ 1 #define __NO_TLS 1 - #define __amd64__ 1 # if __SIZEOF_POINTER__ == 8 /* FIXME, __int128_t is used by setjump */ #define __int128_t struct { unsigned char _dummy[16] __attribute((aligned(16))); } @@ -232,7 +231,7 @@ __BOUND(void*,__aeabi_memset,(void*,int,__SIZE_TYPE__)) #endif -#if defined __linux__ // HAVE MALLOC_REDIR +#if defined __linux__ || defined __APPLE__ // HAVE MALLOC_REDIR #define __MAYBE_REDIR __BUILTIN #else #define __MAYBE_REDIR __BOTH