Skip to content

Commit

Permalink
Avoid that Meson defines its own function prototype
Browse files Browse the repository at this point in the history
  • Loading branch information
kleisauke committed Nov 8, 2022
1 parent d07a712 commit 0230490
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test cases/common/260 has_function darwin/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ endif
cc = meson.get_compiler('c')

# only available on macOS 10.13 or newer
assert(cc.has_function('utimensat'))
assert(cc.has_function('utimensat', prefix: '#include <sys/stat.h>'))

# introduced in macOS 11.0
assert(not cc.has_function('pthread_jit_write_protect_np'))
assert(not cc.has_function('pthread_jit_write_protect_np', prefix: '#include <pthread.h>'))

0 comments on commit 0230490

Please sign in to comment.