aboutsummaryrefslogtreecommitdiff
path: root/image
diff options
context:
space:
mode:
authorBastien Bouclet2019-04-28 09:18:07 +0200
committerBastien Bouclet2019-04-28 09:18:07 +0200
commitefcd8ab27047c82da67f98c4246427c8f2c19d4c (patch)
tree145b3fa2a592549c5763a5fbe398852b0b40ea9f /image
parent8ffa7379014916eff11005ae324ec24c68abd4bf (diff)
downloadscummvm-rg350-efcd8ab27047c82da67f98c4246427c8f2c19d4c.tar.gz
scummvm-rg350-efcd8ab27047c82da67f98c4246427c8f2c19d4c.tar.bz2
scummvm-rg350-efcd8ab27047c82da67f98c4246427c8f2c19d4c.zip
IMAGE: Fix build when not using libjpeg-turbo
Diffstat (limited to 'image')
-rw-r--r--image/jpeg.cpp2
1 files changed, 2 insertions, 0 deletions
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;
}