summaryrefslogtreecommitdiff
path: root/image/jpeg.c
diff options
context:
space:
mode:
Diffstat (limited to 'image/jpeg.c')
-rw-r--r--image/jpeg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/image/jpeg.c b/image/jpeg.c
index d49d49a4c..6bc39766e 100644
--- a/image/jpeg.c
+++ b/image/jpeg.c
@@ -26,6 +26,9 @@
#include "utils/config.h"
#ifdef WITH_JPEG
+/* This must come first due to libpng issues */
+#include "content/content.h"
+
#include <assert.h>
#include <setjmp.h>
#include <string.h>
@@ -33,7 +36,6 @@
#include <stdlib.h>
#define JPEG_INTERNAL_OPTIONS
#include "jpeglib.h"
-#include "content/content.h"
#include "desktop/plotters.h"
#include "image/bitmap.h"
#include "image/jpeg.h"