Skip to content

Commit

Permalink
IMAGE: Fix MSVC warnings
Browse files Browse the repository at this point in the history
Fixes warning C4067: unexpected tokens following preprocessor directive
due to non-standard "and" "or" operators
  • Loading branch information
SupSuper authored and dreammaster committed May 9, 2019
1 parent 03c43f0 commit 2365b67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions image/jpeg.cpp
Expand Up @@ -184,7 +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)
#if defined(JCS_EXTENSIONS) || defined(JCS_ALPHA_EXTENSIONS)
struct PixelFormatMapping {
Graphics::PixelFormat pixelFormat;
J_COLOR_SPACE bigEndianColorSpace;
Expand All @@ -200,7 +200,7 @@ J_COLOR_SPACE fromScummvmPixelFormat(const Graphics::PixelFormat &format) {
{ Graphics::PixelFormat(3, 8, 8, 8, 0, 16, 8, 0, 0), JCS_EXT_RGB, JCS_EXT_BGR },
{ Graphics::PixelFormat(3, 8, 8, 8, 0, 0, 8, 16, 0), JCS_EXT_BGR, JCS_EXT_RGB }
#endif
#if defined(JCS_EXTENSIONS) and defined(JCS_ALPHA_EXTENSIONS)
#if defined(JCS_EXTENSIONS) && defined(JCS_ALPHA_EXTENSIONS)
,
#endif
#ifdef JCS_ALPHA_EXTENSIONS
Expand Down

0 comments on commit 2365b67

Please sign in to comment.