libretro / bnes-libretro

libretro implementation of bNES
GNU General Public License v3.0
11 stars 12 forks source link

Does not compile on ios-arm64 #28

Closed jet082 closed 4 years ago

jet082 commented 5 years ago

This can be fixed by doing the following:

1) Add this to libco/aarch64.c

#define HAVE_POSIX_MEMALIGN 1
#define IOS

2) Replace all instances of stat64 with stat in nall/file.hpp and add #define _DARWIN_USE_64_BIT_INODE 1 to the same file 3) Add -Wno-error=implicit-function-declaration to CC and -std=c++11 -stdlib=libc++ to CXX. I could not do this in the Makefile for some reason, so I added them to libretro-config.sh.

jet082 commented 5 years ago

I have confirmed the above changes allow the code to compile and I have tested some sample content and it runs on iOS-arm64.

jet082 commented 4 years ago

Fixed by https://github.com/libretro/bnes-libretro/commit/8e26e89a93bef8eb8992d1921b539dce1792660a