From efcd8ab27047c82da67f98c4246427c8f2c19d4c Mon Sep 17 00:00:00 2001 From: Bastien Bouclet Date: Sun, 28 Apr 2019 09:18:07 +0200 Subject: IMAGE: Fix build when not using libjpeg-turbo --- image/jpeg.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'image/jpeg.cpp') diff --git a/image/jpeg.cpp b/image/jpeg.cpp index 2a528d53d7..4605d178e1 100644 --- a/image/jpeg.cpp +++ b/image/jpeg.cpp @@ -184,6 +184,7 @@ void outputMessage(j_common_ptr cinfo) { } J_COLOR_SPACE fromScummvmPixelFormat(const Graphics::PixelFormat &format) { +#if defined(JCS_EXTENSIONS) or defined(JCS_ALPHA_EXTENSIONS) struct PixelFormatMapping { Graphics::PixelFormat pixelFormat; J_COLOR_SPACE bigEndianColorSpace; @@ -219,6 +220,7 @@ J_COLOR_SPACE fromScummvmPixelFormat(const Graphics::PixelFormat &format) { #endif } } +#endif return JCS_UNKNOWN; } -- cgit v1.2.3