diff --git a/image/jpeg.c b/image/jpeg.c index 7114bd550..866da9132 100644 --- a/image/jpeg.c +++ b/image/jpeg.c @@ -17,9 +17,10 @@ #include #include #include +#include "utils/config.h" +#ifdef WITH_JPEG #define JPEG_INTERNAL_OPTIONS #include "jpeglib.h" -#include "utils/config.h" #include "content/content.h" #include "desktop/plotters.h" #include "image/bitmap.h" @@ -250,3 +251,5 @@ void nsjpeg_destroy(struct content *c) bitmap_destroy(c->bitmap); free(c->title); } + +#endif /* WITH_JPEG */