From fac0d0576213a9970d96c11b83f702e74a779d49 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Fri, 1 Sep 2023 01:26:04 +0200 Subject: [PATCH] mtk: Include config.h in C files Make these pull the general config, might be handy in the future. Part-of: --- mtk/meson.build | 5 ++++- mtk/mtk/mtk-rectangle.c | 2 ++ mtk/mtk/mtk-x11-errors.c | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/mtk/meson.build b/mtk/meson.build index e86f2a01f..0de6b8a7b 100644 --- a/mtk/meson.build +++ b/mtk/meson.build @@ -2,7 +2,10 @@ mtk_includesubdir = pkgname / 'mtk' mtk_includedir = includedir / mtk_includesubdir mtk_includepath = include_directories('.', 'mtk') -mtk_includes = [mtk_includepath] +mtk_includes = [ + mtk_includepath, + top_includepath, +] mtk_c_args = [ '-DMTK_SYSCONFDIR="@0@"'.format(prefix / sysconfdir), diff --git a/mtk/mtk/mtk-rectangle.c b/mtk/mtk/mtk-rectangle.c index 35b194348..7b9b0f213 100644 --- a/mtk/mtk/mtk-rectangle.c +++ b/mtk/mtk/mtk-rectangle.c @@ -19,6 +19,8 @@ * License along with this library. If not, see . */ +#include "config.h" + #include "mtk/mtk-rectangle.h" diff --git a/mtk/mtk/mtk-x11-errors.c b/mtk/mtk/mtk-x11-errors.c index fa9d8cc46..b6e955527 100644 --- a/mtk/mtk/mtk-x11-errors.c +++ b/mtk/mtk/mtk-x11-errors.c @@ -23,6 +23,8 @@ * Mutter X error handling */ +#include "config.h" + #include "mtk/mtk-x11-errors.h" #include