[3PP/MacOS] Fix ffmpeg and sha256 build

ffmpeg: macOS uses "_" symbol prefix (Mach-O), has no <malloc.h>,
and doesn't support .data.rel.ro sections. Add __APPLE__ guards
in ffmpeg-xenia/config.h.

sha256: macOS provides endian macros in <machine/endian.h> instead
of <endian.h>.
This commit is contained in:
Herman S.
2026-03-26 23:13:59 +09:00
parent cf013fdc15
commit 78600212b2
2 changed files with 17 additions and 0 deletions

View File

@@ -9,8 +9,12 @@
// big endian architectures need #define __BYTE_ORDER __BIG_ENDIAN
#ifndef _MSC_VER
#ifdef __APPLE__
#include <machine/endian.h>
#else
#include <endian.h>
#endif
#endif
namespace sha256 {