podofo-0.9.6.patchset revision f28049c5
1From 5785180af2325c301b98ce93adcb11eccad1747a Mon Sep 17 00:00:00 2001
2From: Jerome Duval <jerome.duval@gmail.com>
3Date: Wed, 6 Jan 2016 13:57:24 +0000
4Subject: haiku patch
5
6
7diff --git a/src/base/PdfFiltersPrivate.cpp b/src/base/PdfFiltersPrivate.cpp
8index 01fec67..5a2d056 100644
9--- a/src/base/PdfFiltersPrivate.cpp
10+++ b/src/base/PdfFiltersPrivate.cpp
11@@ -928,7 +928,7 @@ void PdfDCTFilter::EndDecodeImpl()
12 
13     jpeg_memory_src ( &m_cinfo, reinterpret_cast<JOCTET*>(m_buffer.GetBuffer()), m_buffer.GetSize() );
14 
15-    if( jpeg_read_header(&m_cinfo, TRUE) <= 0 )
16+    if( jpeg_read_header(&m_cinfo, (boolean)TRUE) <= 0 )
17     {
18         (void) jpeg_destroy_decompress(&m_cinfo);
19 
20@@ -1059,7 +1059,7 @@ fill_input_buffer (j_decompress_ptr cinfo)
21     src->pub.next_input_byte = src->eoi_buffer;
22     src->pub.bytes_in_buffer = 2;
23 
24-    return TRUE;
25+    return (boolean)TRUE;
26 }
27 
28 /*
29diff --git a/src/doc/PdfImage.cpp b/src/doc/PdfImage.cpp
30index 8cd712a..23972b5 100644
31--- a/src/doc/PdfImage.cpp
32+++ b/src/doc/PdfImage.cpp
33@@ -349,7 +349,7 @@ void PdfImage::LoadFromJpegHandle( PdfFileInputStream* pInStream )
34 
35     jpeg_stdio_src(&cinfo, pInStream->GetHandle());
36 
37-    if( jpeg_read_header(&cinfo, TRUE) <= 0 )
38+    if( jpeg_read_header(&cinfo, (boolean)TRUE) <= 0 )
39     {
40         (void) jpeg_destroy_decompress(&cinfo);
41 
42@@ -415,7 +415,7 @@ void PdfImage::LoadFromJpegData(const unsigned char* pData, pdf_long dwLen)
43 
44     jpeg_memory_src(&cinfo, pData, dwLen);
45 
46-    if( jpeg_read_header(&cinfo, TRUE) <= 0 )
47+    if( jpeg_read_header(&cinfo, (boolean)TRUE) <= 0 )
48     {
49         (void) jpeg_destroy_decompress(&cinfo);
50 
51-- 
522.19.1
53
54
55From a9630f963722a0a301c167462ab63671d641683b Mon Sep 17 00:00:00 2001
56From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
57Date: Mon, 4 Feb 2019 19:47:48 +0100
58Subject: Build fix
59
60
61diff --git a/test/unit/ParserTest.cpp b/test/unit/ParserTest.cpp
62index ee01d4a..d0014cd 100644
63--- a/test/unit/ParserTest.cpp
64+++ b/test/unit/ParserTest.cpp
65@@ -2037,7 +2037,7 @@ bool ParserTest::canOutOfMemoryKillUnitTests()
66 #elif defined( __linux__ )
67     // TODO do big allocs succeed then trigger OOM-killer fiasco??
68     bool bCanTerminateProcess = false;
69-#elif
70+#else
71     // other systems - assume big allocs faily gracefully and throw bad_alloc
72     bool bCanTerminateProcess = false;
73 #endif
74-- 
752.19.1
76
77