Use different readdir on macOS depending on arch.

This commit is contained in:
Christoffer Lerno
2023-04-10 09:54:02 +02:00
parent 18c1b20ea0
commit d14e778232
2 changed files with 7 additions and 1 deletions

View File

@@ -109,7 +109,13 @@ $case IOS:
$case MACOSX:
$case TVOS:
$case WATCHOS:
$if (env::ARCH_TYPE == X86_64)
extern fn NativeDirentry* readdir(void*) @extern("readdir$INODE64");
$else
extern fn NativeDirentry* readdir(void*) @extern("readdir");
$endif
struct NativeDirentry
{
usz ino;

View File

@@ -1 +1 @@
#define COMPILER_VERSION "0.4.116"
#define COMPILER_VERSION "0.4.117"