meson: use str.format for improved readability
parent
5ba74dec93
commit
f947af057f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue