summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrobo9k <robo@9k.lv>2014-01-27 23:41:51 +0100
committerTim Angus <tim@ngus.net>2014-06-17 17:43:38 +0100
commitae38333e92707316e00df873668229a61f14dcff (patch)
treecfc3204275a6b50a7f04976afb4d02b2cabd8ed8
parent8a522623fc0f7b1c7e15cf57ea34b201bbb88b4d (diff)
Fix check for jpeg_mem_ to work with libjpeg-turbo
-rw-r--r--src/renderercommon/tr_image_jpg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/renderercommon/tr_image_jpg.c b/src/renderercommon/tr_image_jpg.c
index 931a4f9b..2bbcb365 100644
--- a/src/renderercommon/tr_image_jpg.c
+++ b/src/renderercommon/tr_image_jpg.c
@@ -38,8 +38,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include <jpeglib.h>
#ifndef USE_INTERNAL_JPEG
-# if JPEG_LIB_VERSION < 80
-# error Need system libjpeg >= 80
+# if JPEG_LIB_VERSION < 80 && !defined(MEM_SRCDST_SUPPORTED)
+# error Need system libjpeg >= 80 or jpeg_mem_ support
# endif
#endif