From 564e6c02107a8b0db9a818c0a66affe94694ab39 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Fri, 19 Aug 2011 13:40:38 +0200 Subject: Fix compilation of qjpeg on MinGW with GCC 4.6 --- src/gui/image/qjpeghandler.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gui/image/qjpeghandler.cpp b/src/gui/image/qjpeghandler.cpp index 673a6d6..8fea456 100644 --- a/src/gui/image/qjpeghandler.cpp +++ b/src/gui/image/qjpeghandler.cpp @@ -74,6 +74,11 @@ extern "C" { #endif } +#if defined(JPEG_TRUE) && !defined(HAVE_BOOLEAN) +// this jpeglib.h uses JPEG_boolean +typedef JPEG_boolean boolean; +#endif + QT_BEGIN_NAMESPACE void QT_FASTCALL convert_rgb888_to_rgb32_C(quint32 *dst, const uchar *src, int len) -- cgit v0.12