From 0f957ca4f7bcd353766805d50a6a9bd0e13f850e Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Fri, 12 Apr 2019 20:53:21 +0200 Subject: [PATCH] meson: underscorify immodule name when using it as a macro name This resulted in -DINCLUDE_IM_ti-et getting passed to gcc resulting in lots of warnings. Use underscorify() so we get the correct -DINCLUDE_IM_ti_et instead. --- gtk/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/meson.build b/gtk/meson.build index 93e029f42c..ac8c1a9926 100644 --- a/gtk/meson.build +++ b/gtk/meson.build @@ -952,7 +952,7 @@ foreach l: immodules cflags = l.get(3, []) if cond and builtin_immodules - gtk_cargs += ['-DINCLUDE_IM_@0@'.format(name)] + gtk_cargs += ['-DINCLUDE_IM_@0@'.format(name.underscorify())] mod = static_library('staticimmodule-@0@'.format(name), sources + gtk_dep_sources, dependencies: gtk_deps + [libgdk_dep] ,