From 68e786b4e89ed27dc253d6b188759aee62246811 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Thu, 6 Jan 2022 06:14:45 +0100 Subject: Fix build with JPEG-QS but without lcms2 --- fiv-io.c | 14 ++++++++------ 1 file 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 #include -// Colour management must be handled before RGB conversions. -#ifdef HAVE_LCMS2 -#include -#endif // HAVE_LCMS2 - #ifdef HAVE_JPEG_QS -#include #include +#include + +#include // This library is tricky to build, simply make it work at all. #define NO_SIMD #include #undef NO_SIMD #endif // HAVE_JPEG_QS +// Colour management must be handled before RGB conversions. +#ifdef HAVE_LCMS2 +#include +#endif // HAVE_LCMS2 + #ifdef HAVE_LIBRAW #include #endif // HAVE_LIBRAW -- cgit v1.2.3-70-g09d2