macos: various fixes

* 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
This commit is contained in:
Michael Matz
2020-05-22 05:12:23 +02:00
parent b0b0e48409
commit 5d2f4cb403
3 changed files with 7 additions and 2 deletions

View File

@@ -1,6 +1,9 @@
/* ---------------------------------------------- */
/* alloca86_64.S */
#ifdef __APPLE__
#define alloca _alloca
#endif
.globl alloca
alloca: