aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-12-23 17:03:50 +0100
committerPřemysl Eric Janouch <p@janouch.name>2022-12-23 17:04:15 +0100
commitc063d93dc7037578a475ae559478bd302358472f (patch)
tree79e22505284a4deebef30c450c361292c06d43d2
parent0317b88c879db481611027dc5d2a853fee632b1a (diff)
downloadfiv-c063d93dc7037578a475ae559478bd302358472f.tar.gz
fiv-c063d93dc7037578a475ae559478bd302358472f.tar.xz
fiv-c063d93dc7037578a475ae559478bd302358472f.zip
Fix LibRaw 0.21.0 build
-rw-r--r--fiv-io.c5
1 files changed, 5 insertions, 0 deletions
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)
{