Fix build with JPEG-QS but without lcms2

This commit is contained in:
Přemysl Eric Janouch 2022-01-06 06:14:45 +01:00
parent 9a1396b91f
commit 68e786b4e8
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 8 additions and 6 deletions

View File

@ -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