aboutsummaryrefslogtreecommitdiff
path: root/fiv-io.c
diff options
context:
space:
mode:
Diffstat (limited to 'fiv-io.c')
-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)
{