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 | 66554698a08e8c3846d22f61445c880c9de20e26 (diff) |
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 @@ -#include <gdk-pixbuf/gdk-pixbuf.h> #include <cairo/cairo.h> #include "client/cairo.h" +#ifdef WITH_GDK_PIXBUF +#include <gdk-pixbuf/gdk-pixbuf.h> + #ifndef GDK_PIXBUF_CHECK_VERSION #define GDK_PIXBUF_CHECK_VERSION(major,minor,micro) \ (GDK_PIXBUF_MAJOR > (major) || \ @@ -103,3 +105,4 @@ cairo_surface_t* gdk_cairo_image_surface_create_from_pixbuf(const GdkPixbuf *gdk cairo_surface_mark_dirty(cs); return cs; } +#endif //WITH_GDK_PIXBUF |