aboutsummaryrefslogtreecommitdiff
path: root/fiv-io.c
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-01-06 06:14:45 +0100
committerPřemysl Eric Janouch <p@janouch.name>2022-01-06 06:15:08 +0100
commit68e786b4e89ed27dc253d6b188759aee62246811 (patch)
treeb0acc7e67c6ca400258704d8411dd8aac6413b2d /fiv-io.c
parent9a1396b91f95befe84b754fa638d48094a1519bf (diff)
downloadfiv-68e786b4e89ed27dc253d6b188759aee62246811.tar.gz
fiv-68e786b4e89ed27dc253d6b188759aee62246811.tar.xz
fiv-68e786b4e89ed27dc253d6b188759aee62246811.zip
Fix build with JPEG-QS but without lcms2
Diffstat (limited to 'fiv-io.c')
-rw-r--r--fiv-io.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/fiv-io.c b/fiv-io.c
index 592e134..266e139 100644
--- a/fiv-io.c
+++ b/fiv-io.c
@@ -27,20 +27,22 @@
#include <webp/encode.h>
#include <webp/mux.h>
-// Colour management must be handled before RGB conversions.
-#ifdef HAVE_LCMS2
-#include <lcms2.h>
-#endif // HAVE_LCMS2
-
#ifdef HAVE_JPEG_QS
-#include <jpeglib.h>
#include <setjmp.h>
+#include <stdio.h>
+
+#include <jpeglib.h>
// This library is tricky to build, simply make it work at all.
#define NO_SIMD
#include <jpeg-quantsmooth/quantsmooth.h>
#undef NO_SIMD
#endif // HAVE_JPEG_QS
+// Colour management must be handled before RGB conversions.
+#ifdef HAVE_LCMS2
+#include <lcms2.h>
+#endif // HAVE_LCMS2
+
#ifdef HAVE_LIBRAW
#include <libraw.h>
#endif // HAVE_LIBRAW