From f947af057fcba09d22dd55c0d41f9b774072d440 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Fri, 29 Jul 2022 10:31:49 -0700 Subject: [PATCH] meson: use str.format for improved readability --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 382fa71..efa064a 100644 --- a/meson.build +++ b/meson.build @@ -29,7 +29,7 @@ check_functions = [ ] foreach f : check_functions - 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') + if cc.has_function(f[1], prefix : '#define _BSD_SOURCE\n#include <@0@>'.format(f[2])) and cc.has_header_symbol(f[2], f[1], prefix : '#define _BSD_SOURCE') cdata.set(f[0], 1) endif endforeach