From c063d93dc7037578a475ae559478bd302358472f Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Fri, 23 Dec 2022 17:03:50 +0100 Subject: Fix LibRaw 0.21.0 build --- fiv-io.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fiv-io.c b/fiv-io.c index 547727d..c17abca 100644 --- a/fiv-io.c +++ b/fiv-io.c @@ -1697,6 +1697,11 @@ fail: #ifdef HAVE_LIBRAW // --------------------------------------------------------- +// LibRaw 0.21.0 compatibility. +#ifndef LIBRAW_OPIONS_NO_MEMERR_CALLBACK +#define LIBRAW_OPIONS_NO_MEMERR_CALLBACK 0 +#endif + static cairo_surface_t * open_libraw(const char *data, gsize len, GError **error) { -- cgit v1.2.3-70-g09d2