We cannot add to configh_data after this command so let's generate this last.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
configh_data.set('_CRT_NONSTDC_NO_DEPRECATE', 1)
# Reduce unnecessary includes on MSVC.
configh_data.set('WIN32_LEAN_AND_MEAN', 1)
-configure_file(output: 'config.h', configuration: configh_data)
-
# Supports -Wl,--version-script?
have_version_script = cc.links(
build_by_default: true,
)
endif
+
+configure_file(output: 'config.h', configuration: configh_data)