Remove __amd64__ for FreeBD (32 bits version did not work any more) Add __APPLE__ at HAVE MALLOC_REDIR so bound checking works on apple
Unified · Split
| @@ -72,7 +72,6 @@ · 71 unmodified lines | ||
| 72 | 72 | #define __GNUC_PATCHLEVEL__ 0 |
| 73 | 73 | #define __GNUC_STDC_INLINE__ 1 |
| 74 | 74 | #define __NO_TLS 1 |
| 75 | − #define __amd64__ 1 | |
| 76 | 75 | # if __SIZEOF_POINTER__ == 8 |
| 77 | 76 | /* FIXME, __int128_t is used by setjump */ |
| 78 | 77 | #define __int128_t struct { unsigned char _dummy[16] __attribute((aligned(16))); } |
| @@ -232,7 +231,7 @@ · 153 unmodified lines | ||
| 232 | 231 | __BOUND(void*,__aeabi_memset,(void*,int,__SIZE_TYPE__)) |
| 233 | 232 | #endif |
| 234 | 233 | |
| 235 | −#if defined __linux__ // HAVE MALLOC_REDIR | |
| 234 | +#if defined __linux__ || defined __APPLE__ // HAVE MALLOC_REDIR | |
| 236 | 235 | #define __MAYBE_REDIR __BUILTIN |
| 237 | 236 | #else |
| 238 | 237 | #define __MAYBE_REDIR __BOTH |