summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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