Fixes a bug where Mingw defines JPEG_TRUE JPEG_FALSE AND JPEG_boolean in libjpeg-8
authorDimitris Zenios <dimitris.zenios@gmail.com>
Sun, 12 Jun 2011 20:14:22 +0300
changeset 276a5d4daece235
parent 275 bb611e7cb1e5
child 277 45748e6e2f81
Fixes a bug where Mingw defines JPEG_TRUE JPEG_FALSE AND JPEG_boolean in libjpeg-8

When building in linux with gcc those flags are not defined
IMG_jpg.c
     1.1 --- a/IMG_jpg.c	Thu Aug 25 02:24:35 2011 -0400
     1.2 +++ b/IMG_jpg.c	Sun Jun 12 20:14:22 2011 +0300
     1.3 @@ -34,7 +34,7 @@
     1.4  
     1.5  #include <jpeglib.h>
     1.6  
     1.7 -#if JPEG_LIB_VERSION >= 80
     1.8 +#if JPEG_LIB_VERSION >= 80 && defined(__MINGW__)
     1.9  	typedef JPEG_boolean boolean;
    1.10  	#define TRUE JPEG_TRUE
    1.11  	#define FALSE JPEG_FALSE