Skip to content

Commit

Permalink
define SLJIT_UPDATE_WX_FLAGS for ios cross compile
Browse files Browse the repository at this point in the history
To avoid `implicit declaration of function 'SLJIT_UPDATE_WX_FLAGS' is
invalid in C99`
  • Loading branch information
Ghost-LZW committed May 10, 2023
1 parent cf6f984 commit c6df5b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sljit/allocator_src/sljitExecAllocatorApple.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c6df5b9

Please sign in to comment.