From c6df5b9669e86a731838c5d898c4ac2ec1a95c17 Mon Sep 17 00:00:00 2001 From: Zongwei Lan Date: Wed, 10 May 2023 15:42:33 +0800 Subject: [PATCH] define SLJIT_UPDATE_WX_FLAGS for ios cross compile To avoid `implicit declaration of function 'SLJIT_UPDATE_WX_FLAGS' is invalid in C99` --- src/sljit/allocator_src/sljitExecAllocatorApple.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sljit/allocator_src/sljitExecAllocatorApple.c b/src/sljit/allocator_src/sljitExecAllocatorApple.c index 6352377c4..eb8e39d89 100644 --- a/src/sljit/allocator_src/sljitExecAllocatorApple.c +++ b/src/sljit/allocator_src/sljitExecAllocatorApple.c @@ -90,6 +90,7 @@ static SLJIT_INLINE void apple_update_wx_flags(sljit_s32 enable_exec) #endif /* SLJIT_CONFIG_X86 */ #else /* !TARGET_OS_OSX */ #define SLJIT_MAP_JIT (MAP_JIT) +#define SLJIT_UPDATE_WX_FLAGS(from, to, enable_exec) #endif /* TARGET_OS_OSX */ static SLJIT_INLINE void* alloc_chunk(sljit_uw size)