summaryrefslogtreecommitdiff
path: root/source/fitz/load-png.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/fitz/load-png.c')
-rw-r--r--source/fitz/load-png.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/fitz/load-png.c b/source/fitz/load-png.c
index fbda9035..7d2201ee 100644
--- a/source/fitz/load-png.c
+++ b/source/fitz/load-png.c
@@ -344,6 +344,7 @@ png_read_trns(fz_context *ctx, struct info *info, const unsigned char *p, unsign
static void
png_read_icc(fz_context *ctx, struct info *info, const unsigned char *p, unsigned int size)
{
+#if FZ_ENABLE_ICC
fz_stream *mstm = NULL, *zstm = NULL;
fz_colorspace *cs = NULL;
size_t m = fz_mini(80, size);
@@ -373,6 +374,7 @@ png_read_icc(fz_context *ctx, struct info *info, const unsigned char *p, unsigne
}
fz_catch(ctx)
fz_warn(ctx, "cannot read embedded ICC profile");
+#endif
}
static void