parent
658a826518
commit
6ba724c5c7
1 changed files with 11 additions and 0 deletions
@ -0,0 +1,11 @@ |
||||
project('has function', 'c') |
||||
|
||||
cc = meson.get_compiler('c') |
||||
|
||||
if not cc.has_function('printf', prefix : '#include<stdio.h>') |
||||
error('Existing function not found.') |
||||
endif |
||||
|
||||
if cc.has_function('hfkerhisadf', prefix : '#include<stdio.h>') |
||||
error('Found non-existant function.') |
||||
endif |
Loading…
Reference in new issue