summaryrefslogtreecommitdiff
path: root/camlibs/ax203/ax203_compress_jpeg.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2010-09-23 09:20:43 +0000
committerHans de Goede <hdegoede@redhat.com>2010-09-23 09:20:43 +0000
commit923225d81c2b44490d4ecf28d724032fcb9b2ec8 (patch)
treec255d067d9616e2deb497d04387fc7bd20e981b0 /camlibs/ax203/ax203_compress_jpeg.c
parentefc112a7b3ca285aa55f4813fae29d5e6f64827c (diff)
downloadlibgphoto2-923225d81c2b44490d4ecf28d724032fcb9b2ec8.tar.gz
add make libjpeg presence conditional patch from libgphoto-2_4 branch
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@13329 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'camlibs/ax203/ax203_compress_jpeg.c')
-rw-r--r--camlibs/ax203/ax203_compress_jpeg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/camlibs/ax203/ax203_compress_jpeg.c b/camlibs/ax203/ax203_compress_jpeg.c
index 641077800..177016651 100644
--- a/camlibs/ax203/ax203_compress_jpeg.c
+++ b/camlibs/ax203/ax203_compress_jpeg.c
@@ -27,9 +27,11 @@
#endif
#include "ax203.h"
+#ifdef HAVE_LIBJPEG
#include "jpeg_memsrcdest.h"
+#endif
-#ifdef HAVE_GD
+#if defined(HAVE_GD) && defined(HAVE_LIBJPEG)
static int
locate_tables_n_write(JOCTET *jpeg, int jpeg_size, JOCTET table_type,
uint8_t *outbuf, int *outc)