* alloca needs to be _alloca * int64_t and uint64_t are also defined in <sys/_types/_int64_t.h> but as long long, not as long, so adjust out <stddef.h> to agree on Darwin * define __APPLE_CC__ so that <TargetConditionals.h> correctly defines various macros like TARGET_OS_MAC and TARGET_CPU_X86_64
Showing the changes to lib (1 of 3 files). Show all
Unified · Split
| @@ -1,6 +1,9 @@ | ||
| 1 | 1 | /* ---------------------------------------------- */ |
| 2 | 2 | /* alloca86_64.S */ |
| 3 | 3 | |
| 4 | +#ifdef __APPLE__ | |
| 5 | +#define alloca _alloca | |
| 6 | +#endif | |
| 4 | 7 | .globl alloca |
| 5 | 8 | |
| 6 | 9 | alloca: |