forked from ariadne/pkgconf
meson: use straight indexing instead of array.get()
It's more terse, and we don't need the support of a fallback value.master
parent
bf307c1d95
commit
5ba74dec93
|
@ -29,8 +29,8 @@ check_functions = [
|
|||
]
|
||||
|
||||
foreach f : check_functions
|
||||
if cc.has_function(f.get(1), prefix : '#define _BSD_SOURCE\n#include <' + f.get(2) + '>') and cc.has_header_symbol(f.get(2), f.get(1), prefix : '#define _BSD_SOURCE')
|
||||
cdata.set(f.get(0), 1)
|
||||
if cc.has_function(f[1], prefix : '#define _BSD_SOURCE\n#include <' + f[2] + '>') and cc.has_header_symbol(f[2], f[1], prefix : '#define _BSD_SOURCE')
|
||||
cdata.set(f[0], 1)
|
||||
endif
|
||||
endforeach
|
||||
|
||||
|
|
Loading…
Reference in New Issue