History

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

herman ten brugge committed 5 years ago

Commit f7d2d041 parent 0352c411 file · +1 −2Browse files

Unified · Split

include/tccdefs.h+1−2
@@ -72,7 +72,6 @@ · 71 unmodified lines
7272 #define __GNUC_PATCHLEVEL__ 0
7373 #define __GNUC_STDC_INLINE__ 1
7474 #define __NO_TLS 1
75− #define __amd64__ 1
7675 # if __SIZEOF_POINTER__ == 8
7776 /* FIXME, __int128_t is used by setjump */
7877 #define __int128_t struct { unsigned char _dummy[16] __attribute((aligned(16))); }
@@ -232,7 +231,7 @@ · 153 unmodified lines
232231 __BOUND(void*,__aeabi_memset,(void*,int,__SIZE_TYPE__))
233232 #endif
234233
235−#if defined __linux__ // HAVE MALLOC_REDIR
234+#if defined __linux__ || defined __APPLE__ // HAVE MALLOC_REDIR
236235 #define __MAYBE_REDIR __BUILTIN
237236 #else
238237 #define __MAYBE_REDIR __BOTH

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t