make gdk-pixbuf dependency really optional

This commit is contained in:
progandy 2015-12-20 17:37:52 +01:00
parent 66554698a0
commit 21014e606b
9 changed files with 62 additions and 13 deletions

View file

@ -1,8 +1,10 @@
#ifndef _SWAY_CAIRO_H
#define _SWAY_CAIRO_H
#ifdef WITH_GDK_PIXBUF
#include <gdk-pixbuf/gdk-pixbuf.h>
cairo_surface_t* gdk_cairo_image_surface_create_from_pixbuf(const GdkPixbuf *gdkbuf);
#endif //WITH_GDK_PIXBUF
#endif