diff options
author | progandy <code@progandy> | 2015-12-20 17:37:52 +0100 |
---|---|---|
committer | progandy <code@progandy> | 2015-12-20 17:37:52 +0100 |
commit | 21014e606b9b28d792b98cf363f20c7df2136723 (patch) | |
tree | 946a056785f05744932f21538a90f5687deb299c /wayland/cairo.c | |
parent | Update README screenshot (diff) | |
download | sway-21014e606b9b28d792b98cf363f20c7df2136723.tar.gz sway-21014e606b9b28d792b98cf363f20c7df2136723.tar.zst sway-21014e606b9b28d792b98cf363f20c7df2136723.zip |
make gdk-pixbuf dependency really optional
Diffstat (limited to 'wayland/cairo.c')
-rw-r--r-- | wayland/cairo.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/wayland/cairo.c b/wayland/cairo.c index 10a15f40..7462b10a 100644 --- a/wayland/cairo.c +++ b/wayland/cairo.c | |||
@@ -1,7 +1,9 @@ | |||
1 | #include <gdk-pixbuf/gdk-pixbuf.h> | ||
2 | #include <cairo/cairo.h> | 1 | #include <cairo/cairo.h> |
3 | #include "client/cairo.h" | 2 | #include "client/cairo.h" |
4 | 3 | ||
4 | #ifdef WITH_GDK_PIXBUF | ||
5 | #include <gdk-pixbuf/gdk-pixbuf.h> | ||
6 | |||
5 | #ifndef GDK_PIXBUF_CHECK_VERSION | 7 | #ifndef GDK_PIXBUF_CHECK_VERSION |
6 | #define GDK_PIXBUF_CHECK_VERSION(major,minor,micro) \ | 8 | #define GDK_PIXBUF_CHECK_VERSION(major,minor,micro) \ |
7 | (GDK_PIXBUF_MAJOR > (major) || \ | 9 | (GDK_PIXBUF_MAJOR > (major) || \ |
@@ -103,3 +105,4 @@ cairo_surface_t* gdk_cairo_image_surface_create_from_pixbuf(const GdkPixbuf *gdk | |||
103 | cairo_surface_mark_dirty(cs); | 105 | cairo_surface_mark_dirty(cs); |
104 | return cs; | 106 | return cs; |
105 | } | 107 | } |
108 | #endif //WITH_GDK_PIXBUF | ||