Skip to content

Commit

Permalink
define SLJIT_UPDATE_WX_FLAGS when !TARGET_OS_OSX for ios cross co…
Browse files Browse the repository at this point in the history
…mpile

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 58c1069
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 58c1069

Please sign in to comment.