From 5aa49e1d4d9b2083b46cf7f94e309610db8392df Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Wed, 6 Jan 2016 13:57:24 +0000
Subject: haiku patch


diff --git a/src/podofo/base/PdfFiltersPrivate.cpp b/src/podofo/base/PdfFiltersPrivate.cpp
index d41444b..a1bb36b 100644
--- a/src/podofo/base/PdfFiltersPrivate.cpp
+++ b/src/podofo/base/PdfFiltersPrivate.cpp
@@ -973,7 +973,7 @@ void PdfDCTFilter::EndDecodeImpl()
 
     jpeg_memory_src ( &m_cinfo, reinterpret_cast<JOCTET*>(m_buffer.GetBuffer()), m_buffer.GetSize() );
 
-    if( jpeg_read_header(&m_cinfo, TRUE) <= 0 )
+    if( jpeg_read_header(&m_cinfo, (boolean)TRUE) <= 0 )
     {
         (void) jpeg_destroy_decompress(&m_cinfo);
 
@@ -1104,7 +1104,7 @@ fill_input_buffer (j_decompress_ptr cinfo)
     src->pub.next_input_byte = src->eoi_buffer;
     src->pub.bytes_in_buffer = 2;
 
-    return TRUE;
+    return (boolean)TRUE;
 }
 
 /*
diff --git a/src/podofo/doc/PdfImage.cpp b/src/podofo/doc/PdfImage.cpp
index b15c56e..77dcf4b 100644
--- a/src/podofo/doc/PdfImage.cpp
+++ b/src/podofo/doc/PdfImage.cpp
@@ -349,7 +349,7 @@ void PdfImage::LoadFromJpegHandle( PdfFileInputStream* pInStream )
 
     jpeg_stdio_src(&cinfo, pInStream->GetHandle());
 
-    if( jpeg_read_header(&cinfo, TRUE) <= 0 )
+    if( jpeg_read_header(&cinfo, (boolean)TRUE) <= 0 )
     {
         (void) jpeg_destroy_decompress(&cinfo);
 
@@ -415,7 +415,7 @@ void PdfImage::LoadFromJpegData(const unsigned char* pData, pdf_long dwLen)
 
     jpeg_memory_src(&cinfo, pData, dwLen);
 
-    if( jpeg_read_header(&cinfo, TRUE) <= 0 )
+    if( jpeg_read_header(&cinfo, (boolean)TRUE) <= 0 )
     {
         (void) jpeg_destroy_decompress(&cinfo);
 
-- 
2.30.2

