I Filed a bug regarding SDL_image.
When compiling with mingw, libjpeg-8 header files define
SDL_TRUE,SDL_FALSE and SDL_BOOLEAN.This is the reason of the previous
fix
#if JPEG_LIB_VERSION >= 80
typedef JPEG_boolean boolean;
#define TRUE JPEG_TRUE
#define FALSE JPEG_FALSE
#endif
that was merged in SDL_image.
Unfortunately this fix has to check also if mingw.
The bug and the attached patch can be seen at:
http://bugzilla.libsdl.org/show_bug.cgi?id=1223
Dimitris Zenios