From d7979dece664f3c31d7cb2f4c3b25501e1ab809a Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Mon, 27 May 2019 10:08:27 +1000 Subject: waf: Update the check_cc tests to a newer method supported by waf. - Fix a minor issue in covoar's use of 64bit calls. --- misc/wscript | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'misc') diff --git a/misc/wscript b/misc/wscript index 95c7bde..cd31091 100644 --- a/misc/wscript +++ b/misc/wscript @@ -33,8 +33,11 @@ def options(opt): def configure(conf): conf.load('compiler_c') - conf.check_cc(function_name = 'strnlen', header_name="string.h", - features = 'c', mandatory = False) + conf.check_cc(fragment = ''' + #include + int main() { size_t l = strnlen("string", 10); } ''', + cflags = '-Wall', define_name = 'HAVE_STRNLEN', + msg = 'Checking for strnlen', mandatory = False) conf.write_config_header('config.h') def build(bld): -- cgit v1.2.3