From f9144ecde4dd915cc4865807dd277da7f49351f6 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 7 Apr 2011 07:50:52 -0700 Subject: [PATCH] Fixed bug 1179 (IMG_jpg.c doesn't build with the new libjpeg) fcoelho_9@hotmail.com 2011-04-07 07:24:58 PDT libjpeg 8 has a different naming scheme for booleans: boolean -> JPEG_boolean FALSE -> JPEG_FALSE TRUE -> JPEG_TRUE I'm building SDL_image with MinGW, attached is a small change I've made to IMG_jpg.c to be able to compile it. --- IMG_jpg.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/IMG_jpg.c b/IMG_jpg.c index b0160beb..9e0fc892 100644 --- a/IMG_jpg.c +++ b/IMG_jpg.c @@ -34,6 +34,12 @@ #include +#if JPEG_LIB_VERSION >= 80 + typedef JPEG_boolean boolean; + #define TRUE JPEG_TRUE + #define FALSE JPEG_FALSE +#endif + /* Define this for fast loading and not as good image quality */ /*#define FAST_JPEG*/