[poppler] goo/JpegWriter.h
Albert Astals Cid
aacid at kemper.freedesktop.org
Wed Feb 10 15:09:41 PST 2010
goo/JpegWriter.h | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit ba65b3af047b758094b999b2939065c5127508dd
Author: Albert Astals Cid <aacid at kde.org>
Date: Wed Feb 10 23:08:04 2010 +0000
Wrap #include <jpeglib.h> in extern "C" to fix build
Fixes bug 26351
diff --git a/goo/JpegWriter.h b/goo/JpegWriter.h
index 0972ce8..36049b5 100644
--- a/goo/JpegWriter.h
+++ b/goo/JpegWriter.h
@@ -6,6 +6,7 @@
//
// Copyright (C) 2009 Stefan Thomas <thomas at eload24.com>
// Copyright (C) 2010 Adrian Johnson <ajohnson at redneon.com>
+// Copyright (C) 2010 Jürg Billeter <j at bitron.ch>
//
//========================================================================
@@ -17,9 +18,12 @@
#ifdef ENABLE_LIBJPEG
#include <cstdio>
-#include <jpeglib.h>
#include "ImgWriter.h"
+extern "C" {
+#include <jpeglib.h>
+}
+
class JpegWriter : public ImgWriter
{
public:
More information about the poppler
mailing list