From d45623c2db570b7a2e0582943734d18f3d64b126 Mon Sep 17 00:00:00 2001 From: "Issam E. Maghni" Date: Fri, 7 May 2021 16:57:51 -0400 Subject: [PATCH] cairo: Replace by MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For full context, read https://gitlab.freedesktop.org/cairo/cairo/-/issues/479 TL;DR, cairo’s pc file adds `/cairo` to CFLAGS. So namespace cairo shouldn’t be used. --- client/pool-buffer.c | 2 +- common/background-image.c | 2 +- common/cairo.c | 4 ++-- common/pango.c | 4 ++-- include/background-image.h | 2 +- include/{cairo.h => cairo_util.h} | 6 +++--- include/pango.h | 2 +- include/pool-buffer.h | 2 +- sway/config.c | 2 +- sway/tree/container.c | 2 +- swaybar/render.c | 2 +- swaybar/tray/item.c | 2 +- swaynag/render.c | 2 +- 13 files changed, 17 insertions(+), 17 deletions(-) rename include/{cairo.h => cairo_util.h} (81%) diff --git a/client/pool-buffer.c b/client/pool-buffer.c index fd500c49..ea31edd3 100644 --- a/client/pool-buffer.c +++ b/client/pool-buffer.c @@ -1,6 +1,6 @@ #define _POSIX_C_SOURCE 200809 #include -#include +#include #include #include #include diff --git a/common/background-image.c b/common/background-image.c index de42e8e9..994a0805 100644 --- a/common/background-image.c +++ b/common/background-image.c @@ -1,6 +1,6 @@ #include #include "background-image.h" -#include "cairo.h" +#include "cairo_util.h" #include "log.h" #if HAVE_GDK_PIXBUF #include diff --git a/common/cairo.c b/common/cairo.c index 403dcf49..7c59d48c 100644 --- a/common/cairo.c +++ b/common/cairo.c @@ -1,6 +1,6 @@ #include -#include -#include "cairo.h" +#include +#include "cairo_util.h" void cairo_set_source_u32(cairo_t *cairo, uint32_t color) { cairo_set_source_rgba(cairo, diff --git a/common/pango.c b/common/pango.c index fc3d0688..dbc369dc 100644 --- a/common/pango.c +++ b/common/pango.c @@ -1,4 +1,4 @@ -#include +#include #include #include #include @@ -6,7 +6,7 @@ #include #include #include -#include "cairo.h" +#include "cairo_util.h" #include "log.h" #include "stringop.h" diff --git a/include/background-image.h b/include/background-image.h index 15935ffd..a97ef375 100644 --- a/include/background-image.h +++ b/include/background-image.h @@ -1,6 +1,6 @@ #ifndef _SWAY_BACKGROUND_IMAGE_H #define _SWAY_BACKGROUND_IMAGE_H -#include "cairo.h" +#include "cairo_util.h" enum background_mode { BACKGROUND_MODE_STRETCH, diff --git a/include/cairo.h b/include/cairo_util.h similarity index 81% rename from include/cairo.h rename to include/cairo_util.h index c1275db2..dc049c6d 100644 --- a/include/cairo.h +++ b/include/cairo_util.h @@ -1,8 +1,8 @@ -#ifndef _SWAY_CAIRO_H -#define _SWAY_CAIRO_H +#ifndef _SWAY_CAIRO_UTIL_H +#define _SWAY_CAIRO_UTIL_H #include "config.h" #include -#include +#include #include void cairo_set_source_u32(cairo_t *cairo, uint32_t color); diff --git a/include/pango.h b/include/pango.h index 6ab83c16..75dbba27 100644 --- a/include/pango.h +++ b/include/pango.h @@ -3,7 +3,7 @@ #include #include #include -#include +#include #include /** diff --git a/include/pool-buffer.h b/include/pool-buffer.h index 54f5be06..b7a95afe 100644 --- a/include/pool-buffer.h +++ b/include/pool-buffer.h @@ -1,6 +1,6 @@ #ifndef _SWAY_BUFFERS_H #define _SWAY_BUFFERS_H -#include +#include #include #include #include diff --git a/sway/config.c b/sway/config.c index 76b9ec08..39013865 100644 --- a/sway/config.c +++ b/sway/config.c @@ -26,7 +26,7 @@ #include "sway/tree/arrange.h" #include "sway/tree/root.h" #include "sway/tree/workspace.h" -#include "cairo.h" +#include "cairo_util.h" #include "pango.h" #include "stringop.h" #include "list.h" diff --git a/sway/tree/container.c b/sway/tree/container.c index bec17d95..b928d069 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c @@ -7,7 +7,7 @@ #include #include #include -#include "cairo.h" +#include "cairo_util.h" #include "pango.h" #include "sway/config.h" #include "sway/desktop.h" diff --git a/swaybar/render.c b/swaybar/render.c index ebe127a5..fcc8be1d 100644 --- a/swaybar/render.c +++ b/swaybar/render.c @@ -5,7 +5,7 @@ #include #include #include -#include "cairo.h" +#include "cairo_util.h" #include "pango.h" #include "pool-buffer.h" #include "swaybar/bar.h" diff --git a/swaybar/tray/item.c b/swaybar/tray/item.c index c9da51d4..19f4beac 100644 --- a/swaybar/tray/item.c +++ b/swaybar/tray/item.c @@ -13,7 +13,7 @@ #include "swaybar/tray/item.h" #include "swaybar/tray/tray.h" #include "background-image.h" -#include "cairo.h" +#include "cairo_util.h" #include "list.h" #include "log.h" #include "wlr-layer-shell-unstable-v1-client-protocol.h" diff --git a/swaynag/render.c b/swaynag/render.c index cf2cc9e0..2a7f869a 100644 --- a/swaynag/render.c +++ b/swaynag/render.c @@ -1,5 +1,5 @@ #include -#include "cairo.h" +#include "cairo_util.h" #include "log.h" #include "pango.h" #include "pool-buffer.h"