From 5ba74dec933d79f8411288ca64c535e602437b17 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Fri, 29 Jul 2022 10:28:27 -0700 Subject: [PATCH] meson: use straight indexing instead of array.get() It's more terse, and we don't need the support of a fallback value. --- meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 4278f1c..382fa71 100644 --- a/meson.build +++ b/meson.build @@ -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