diff --git a/sljit_src/sljitConfigInternal.h b/sljit_src/sljitConfigInternal.h index a42776da..377c8739 100644 --- a/sljit_src/sljitConfigInternal.h +++ b/sljit_src/sljitConfigInternal.h @@ -322,8 +322,10 @@ extern "C" { #if (!defined SLJIT_CACHE_FLUSH && defined __has_builtin) #if __has_builtin(__builtin___clear_cache) +#ifndef __APPLE__ #define SLJIT_CACHE_FLUSH(from, to) \ __builtin___clear_cache((char*)(from), (char*)(to)) +#endif #endif /* __has_builtin(__builtin___clear_cache) */ #endif /* (!defined SLJIT_CACHE_FLUSH && defined __has_builtin) */ @@ -336,7 +338,7 @@ extern "C" { #define SLJIT_CACHE_FLUSH(from, to) #elif defined __APPLE__ - +#include /* Supported by all macs since Mac OS 10.5. However, it does not work on non-jailbroken iOS devices, although the compilation is successful. */