[gtk/gtk-3-24] meson: underscorify immodule name when using it as a macro name
- From: Christoph Reiter <creiter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gtk-3-24] meson: underscorify immodule name when using it as a macro name
- Date: Fri, 12 Apr 2019 19:02:13 +0000 (UTC)
commit 0f957ca4f7bcd353766805d50a6a9bd0e13f850e
Author: Christoph Reiter <reiter christoph gmail com>
Date: Fri Apr 12 20:53:21 2019 +0200
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] ,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]