summarylogtreecommitdiffstats
path: root/0005-Fix-libjpeg-workaround-for-conflict-with-rpcndr.h.patch
diff options
context:
space:
mode:
authorMartchus2020-11-07 22:32:24 +0100
committerMartchus2020-11-07 22:32:24 +0100
commit6f79193e004470e3251ccc6cb70d50995dfaacb5 (patch)
tree4c3d8fccdf93f0aa53cc66037f79d8fc53c4dd9b /0005-Fix-libjpeg-workaround-for-conflict-with-rpcndr.h.patch
parentd5fc9b0d53496e209bc12bd0f547f62abdb213a7 (diff)
downloadaur-6f79193e004470e3251ccc6cb70d50995dfaacb5.tar.gz
Update to beta3
Diffstat (limited to '0005-Fix-libjpeg-workaround-for-conflict-with-rpcndr.h.patch')
-rw-r--r--0005-Fix-libjpeg-workaround-for-conflict-with-rpcndr.h.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/0005-Fix-libjpeg-workaround-for-conflict-with-rpcndr.h.patch b/0005-Fix-libjpeg-workaround-for-conflict-with-rpcndr.h.patch
new file mode 100644
index 000000000000..9b3baf06416f
--- /dev/null
+++ b/0005-Fix-libjpeg-workaround-for-conflict-with-rpcndr.h.patch
@@ -0,0 +1,37 @@
+From 0f92aeca18858e11ddaa25b7cdad7d89303052ea Mon Sep 17 00:00:00 2001
+From: Martchus <martchus@gmx.net>
+Date: Mon, 2 Nov 2020 13:47:45 +0100
+Subject: [PATCH 5/5] Fix libjpeg workaround for conflict with rpcndr.h
+
+Otherwise it won't compile against mingw-w64-libjpeg-turbo. This version of
+libjpeg seems to take care of the conflict already as long as jconfig.h is
+included before jmorecfg.h.
+
+Change-Id: I011b7735485689c9797cffe2646c8c3d15d0645e
+---
+ src/plugins/imageformats/jpeg/qjpeghandler.cpp | 8 +-------
+ 1 file changed, 1 insertion(+), 7 deletions(-)
+
+diff --git a/src/plugins/imageformats/jpeg/qjpeghandler.cpp b/src/plugins/imageformats/jpeg/qjpeghandler.cpp
+index 29bf5ab589..dc336f156a 100644
+--- a/src/plugins/imageformats/jpeg/qjpeghandler.cpp
++++ b/src/plugins/imageformats/jpeg/qjpeghandler.cpp
+@@ -61,14 +61,8 @@
+
+ // including jpeglib.h seems to be a little messy
+ extern "C" {
+-// jpeglib.h->jmorecfg.h tries to typedef int boolean; but this conflicts with
+-// some Windows headers that may or may not have been included
+-#ifdef HAVE_BOOLEAN
+-# undef HAVE_BOOLEAN
+-#endif
+-#define boolean jboolean
+-
+ #define XMD_H // shut JPEGlib up
++#include <jconfig.h> // ensure jconfig.h is included before jmorecfg.h
+ #include <jpeglib.h>
+ #ifdef const
+ # undef const // remove crazy C hackery in jconfig.h
+--
+2.29.2
+