From 1ef0a84bc78db9724aec53eeabc6ce132dc9c7d9 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Sun, 25 Jun 2023 02:00:51 +0200 Subject: Fix build with older versions of Cairo --- fiv-io.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fiv-io.c b/fiv-io.c index 1f8cc12..65e7012 100644 --- a/fiv-io.c +++ b/fiv-io.c @@ -191,12 +191,14 @@ fiv_io_image_new(cairo_format_t format, uint32_t width, uint32_t height) case CAIRO_FORMAT_ARGB32: unit = 4; break; +#if CAIRO_VERSION >= 11702 case CAIRO_FORMAT_RGB96F: unit = 12; break; case CAIRO_FORMAT_RGBA128F: unit = 16; break; +#endif default: return NULL; } -- cgit v1.2.3-70-g09d2