meson: use straight indexing instead of array.get()

It's more terse, and we don't need the support of a fallback value.
master
Dylan Baker 2022-07-29 10:28:27 -07:00
parent bf307c1d95
commit 5ba74dec93
1 changed files with 2 additions and 2 deletions

View File

@ -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