# HG changeset patch # User Dimitris Zenios # Date 1307898862 -10800 # Node ID 8c3e441cef0e725a0e92aad2a20b7d82c6142545 # Parent b1c1ec3a8d499f51472c9b4bfb830dbda6ee1e71 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 diff -r b1c1ec3a8d49 -r 8c3e441cef0e IMG_jpg.c --- a/IMG_jpg.c Thu Apr 07 07:50:52 2011 -0700 +++ b/IMG_jpg.c Sun Jun 12 20:14:22 2011 +0300 @@ -34,7 +34,7 @@ #include -#if JPEG_LIB_VERSION >= 80 +#if JPEG_LIB_VERSION >= 80 && defined(__MINGW__) typedef JPEG_boolean boolean; #define TRUE JPEG_TRUE #define FALSE JPEG_FALSE