--- src/types.h.orig +++ src/types.h @@ -172,7 +172,7 @@ typedef uint64_t uint64; #define MDFN_COLD __attribute__((cold)) #define MDFN_HOT __attribute__((hot)) - #if MDFN_CLANG_VERSION >= MDFN_MAKE_CLANGV(3,6,0) + #if (!defined(__apple_build_version__) && MDFN_CLANG_VERSION >= MDFN_MAKE_CLANGV(3,6,0)) || MDFN_CLANG_VERSION >= MDFN_MAKE_CLANGV(6,1,0) #define MDFN_ASSUME_ALIGNED(p, align) ((decltype(p))__builtin_assume_aligned((p), (align))) #else #define MDFN_ASSUME_ALIGNED(p, align) (p)