mtk: Include config.h in C files

Make these pull the general config, might be handy in the
future.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3230>
This commit is contained in:
Carlos Garnacho 2023-09-01 01:26:04 +02:00 committed by Marge Bot
parent 55e3b2e519
commit fac0d05762
3 changed files with 8 additions and 1 deletions

View File

@ -2,7 +2,10 @@ mtk_includesubdir = pkgname / 'mtk'
mtk_includedir = includedir / mtk_includesubdir mtk_includedir = includedir / mtk_includesubdir
mtk_includepath = include_directories('.', 'mtk') mtk_includepath = include_directories('.', 'mtk')
mtk_includes = [mtk_includepath] mtk_includes = [
mtk_includepath,
top_includepath,
]
mtk_c_args = [ mtk_c_args = [
'-DMTK_SYSCONFDIR="@0@"'.format(prefix / sysconfdir), '-DMTK_SYSCONFDIR="@0@"'.format(prefix / sysconfdir),

View File

@ -19,6 +19,8 @@
* License along with this library. If not, see <http://www.gnu.org/licenses/>. * License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "config.h"
#include "mtk/mtk-rectangle.h" #include "mtk/mtk-rectangle.h"

View File

@ -23,6 +23,8 @@
* Mutter X error handling * Mutter X error handling
*/ */
#include "config.h"
#include "mtk/mtk-x11-errors.h" #include "mtk/mtk-x11-errors.h"
#include <errno.h> #include <errno.h>