Update podofo in windows build to -r1269

This commit is contained in:
Kovid Goyal 2010-08-14 12:19:14 -06:00
parent 8f42c11aa3
commit 926e3fa545
2 changed files with 22 additions and 40 deletions

View File

@ -237,28 +237,10 @@ cp build/podofo/build/src/Release/podofo.exp lib/
cp build/podofo/build/podofo_config.h include/podofo/ cp build/podofo/build/podofo_config.h include/podofo/
cp -r build/podofo/src/* include/podofo/ cp -r build/podofo/src/* include/podofo/
The following patch (against 0.8.1) was required to get it to compile: You have to use >0.8.1 (>= revision 1269)
Index: src/PdfImage.cpp The following patch (against -r1269) was required to get it to compile:
===================================================================
--- src/PdfImage.cpp (revision 1261)
+++ src/PdfImage.cpp (working copy)
@@ -627,7 +627,7 @@
long lLen = static_cast<long>(pInfo->rowbytes * height);
char* pBuffer = static_cast<char*>(malloc(sizeof(char) * lLen));
- png_bytep pRows[height];
+ png_bytepp pRows = static_cast<png_bytepp>(malloc(sizeof(png_bytep)*height));
for(int y=0; y<height; y++)
{
pRows[y] = reinterpret_cast<png_bytep>(pBuffer + (y * pInfo->rowbytes));
@@ -672,6 +672,7 @@
this->SetImageData( width, height, pInfo->bit_depth, &stream );
free(pBuffer);
+ free(pRows);
}
#endif // PODOFO_HAVE_PNG_LIB
Index: src/PdfFiltersPrivate.cpp Index: src/PdfFiltersPrivate.cpp
=================================================================== ===================================================================