From d6c0054545dda7b105ecda51c4f99a221dc36f79 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Wed, 24 Nov 2021 19:38:33 +0100 Subject: [PATCH] Move check_functions in meson script Move the variable to the place it is actually used. --- app/meson.build | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/meson.build b/app/meson.build index 71a0b2e3..32adf18b 100644 --- a/app/meson.build +++ b/app/meson.build @@ -76,10 +76,6 @@ if aoa_hid_support ] endif -check_functions = [ - 'strdup' -] - cc = meson.get_compiler('c') if not get_option('crossbuild_windows') @@ -140,6 +136,10 @@ if host_machine.system() == 'windows' dependencies += cc.find_library('ws2_32') endif +check_functions = [ + 'strdup', +] + foreach f : check_functions if cc.has_function(f) define = 'HAVE_' + f.underscorify().to_upper()