diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2022-01-06 06:14:45 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2022-01-06 06:15:08 +0100 |
commit | 68e786b4e89ed27dc253d6b188759aee62246811 (patch) | |
tree | b0acc7e67c6ca400258704d8411dd8aac6413b2d | |
parent | 9a1396b91f95befe84b754fa638d48094a1519bf (diff) | |
download | fiv-68e786b4e89ed27dc253d6b188759aee62246811.tar.gz fiv-68e786b4e89ed27dc253d6b188759aee62246811.tar.xz fiv-68e786b4e89ed27dc253d6b188759aee62246811.zip |
Fix build with JPEG-QS but without lcms2
-rw-r--r-- | fiv-io.c | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -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 |