summaryrefslogtreecommitdiff
path: root/plugins/artwork/artwork.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-04-30 20:33:54 +0200
committerGravatar waker <wakeroid@gmail.com>2011-04-30 20:33:54 +0200
commit012b016c23fee87d0b78bb42d6b784fddb496a9a (patch)
treeb9e181b8676677da15ab372a214dacd7f31ddc44 /plugins/artwork/artwork.c
parenta3c4bb806ec13aff63c86fc7c6efee8ca0e8d82c (diff)
added configure option to use imlib2 in artwork plugin
Diffstat (limited to 'plugins/artwork/artwork.c')
-rw-r--r--plugins/artwork/artwork.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/artwork/artwork.c b/plugins/artwork/artwork.c
index 76cb31fe..a65ed413 100644
--- a/plugins/artwork/artwork.c
+++ b/plugins/artwork/artwork.c
@@ -180,6 +180,7 @@ check_dir (const char *dir, mode_t mode)
return 1;
}
+#ifndef USE_IMLIB2
struct my_error_mgr {
struct jpeg_error_mgr pub; /* "public" fields */
@@ -331,6 +332,7 @@ jpeg_resize (const char *fname, const char *outname, int scaled_size) {
return 0;
}
+#endif
#define BUFFER_SIZE 4096