2024-02-15 16:48:07 +01:00
|
|
|
From a17fb43c9257fe1e7a1c57f7c968103ed4ee4c7b Mon Sep 17 00:00:00 2001
|
2020-10-31 22:38:29 +01:00
|
|
|
From: Martchus <martchus@gmx.net>
|
|
|
|
Date: Mon, 2 Nov 2020 13:47:45 +0100
|
2023-11-08 00:21:45 +01:00
|
|
|
Subject: [PATCH 05/13] Fix libjpeg workaround for conflict with rpcndr.h
|
2020-10-31 22:38:29 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
---
|
2021-07-08 14:24:58 +02:00
|
|
|
src/plugins/imageformats/jpeg/qjpeghandler.cpp | 1 +
|
|
|
|
1 file changed, 1 insertion(+)
|
2020-10-31 22:38:29 +01:00
|
|
|
|
|
|
|
diff --git a/src/plugins/imageformats/jpeg/qjpeghandler.cpp b/src/plugins/imageformats/jpeg/qjpeghandler.cpp
|
2023-03-31 23:09:26 +02:00
|
|
|
index 0d72ba01d0..a706fb4cea 100644
|
2020-10-31 22:38:29 +01:00
|
|
|
--- a/src/plugins/imageformats/jpeg/qjpeghandler.cpp
|
|
|
|
+++ b/src/plugins/imageformats/jpeg/qjpeghandler.cpp
|
2022-09-29 12:35:43 +02:00
|
|
|
@@ -26,6 +26,7 @@
|
2020-10-31 22:38:29 +01:00
|
|
|
// including jpeglib.h seems to be a little messy
|
|
|
|
extern "C" {
|
|
|
|
#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
|
|
|
|
--
|
2023-11-27 13:41:06 +01:00
|
|
|
2.43.0
|
2020-10-31 22:38:29 +01:00
|
|
|
|