[Podofo-svn] SF.net SVN: podofo: [853] podofo/trunk
A PDF parsing, modification and creation library.
Brought to you by:
domseichter
From: <dom...@us...> - 2008-06-21 02:14:07
|
Revision: 853 http://podofo.svn.sourceforge.net/podofo/?rev=853&view=rev Author: domseichter Date: 2008-06-20 13:38:02 -0700 (Fri, 20 Jun 2008) Log Message: ----------- FIXED: Compilation on SuSE 11 (rc1), the new gcc or C library seems to be more strict regarding includes, so we have to make sure to include stdlib.h everywhere we use malloc etc and string.h where string functions such as strlen are used. FIXED: Fontconfig detection on SuSE 11 FIXED: Linking of CPPUnit tests on SuSE 11 If these changes work on every plattform I will backport them to branch before release. Modified Paths: -------------- podofo/trunk/CMakeLists.txt podofo/trunk/src/PdfDate.cpp podofo/trunk/src/PdfElement.cpp podofo/trunk/src/PdfEncoding.cpp podofo/trunk/src/PdfEncrypt.cpp podofo/trunk/src/PdfFiltersPrivate.cpp podofo/trunk/src/PdfFont.cpp podofo/trunk/src/PdfFontType1.cpp podofo/trunk/src/PdfInputStream.cpp podofo/trunk/src/PdfMemStream.cpp podofo/trunk/src/PdfName.cpp podofo/trunk/src/PdfOutputDevice.cpp podofo/trunk/src/PdfOutputStream.cpp podofo/trunk/src/PdfPainter.cpp podofo/trunk/src/PdfRefCountedBuffer.cpp podofo/trunk/src/PdfStream.cpp podofo/trunk/src/PdfStream.h podofo/trunk/src/PdfString.cpp podofo/trunk/src/PdfTTFWriter.cpp podofo/trunk/src/PdfTable.cpp podofo/trunk/src/PdfTable.h podofo/trunk/src/PdfTokenizer.cpp podofo/trunk/src/PdfVariant.cpp podofo/trunk/src/PdfWriter.cpp podofo/trunk/test/CreationTest/CreationTest.cpp podofo/trunk/test/DeviceTest/DeviceTest.cpp podofo/trunk/test/FilterTest/FilterTest.cpp podofo/trunk/test/PdfString_Test.cpp podofo/trunk/test/VariantTest/VariantTest.cpp podofo/trunk/test/unit/CMakeLists.txt podofo/trunk/test/unit/EncryptTest.cpp podofo/trunk/test/unit/FilterTest.cpp podofo/trunk/tools/podofoencrypt/podofoencrypt.cpp podofo/trunk/tools/podofoimgextract/ImageExtractor.cpp podofo/trunk/tools/podofoimgextract/podofoimgextract.cpp podofo/trunk/tools/podofomerge/podofomerge.cpp podofo/trunk/tools/podofopdfinfo/podofopdfinfo.cpp podofo/trunk/tools/podofotxt2pdf/podofotxt2pdf.cpp podofo/trunk/tools/podofotxtextract/podofotxtextract.cpp podofo/trunk/tools/podofouncompress/podofouncompress.cpp Added Paths: ----------- podofo/trunk/cmake/modules/FindFONTCONFIG.cmake Removed Paths: ------------- podofo/trunk/cmake/modules/FindLIBFONTCONFIG.cmake Modified: podofo/trunk/CMakeLists.txt =================================================================== --- podofo/trunk/CMakeLists.txt 2008-06-20 10:17:22 UTC (rev 852) +++ podofo/trunk/CMakeLists.txt 2008-06-20 20:38:02 UTC (rev 853) @@ -100,7 +100,7 @@ IF(UNIX) SET(WANT_FONTCONFIG TRUE CACHE INTERNAL -- "True if PoDoFo should be built with fontconfig support") + "True if PoDoFo should be built with fontconfig support") ELSE(UNIX) SET(WANT_FONTCONFIG FALSE CACHE INTERNAL "True if PoDoFo should be built with fontconfig support") @@ -233,13 +233,18 @@ ENDIF(USE_STLPORT) IF(WANT_FONTCONFIG) - FIND_PACKAGE(LIBFONTCONFIG REQUIRED) + FIND_PACKAGE(FONTCONFIG REQUIRED) ADD_DEFINITIONS(-DHAVE_FONTCONFIG) SET(PODOFO_LIB_FONTCONFIG:STRING fontconfig) + IF(FONTCONFIG_FOUND) + MESSAGE("Found fontconfig headers in ${FONTCONFIG_INCLUDE_DIR}, library at ${FONTCONFIG_LIBRARIES}") + ELSE(FONTCONFIG_FOUND) + MESSAGE("Could not find fontconfig.") + ENDIF(FONTCONFIG_FOUND) ELSE(WANT_FONTCONFIG) # Might as well look for it anyway. This also sets the appropriate # variables to empty values. - FIND_PACKAGE(LIBFONTCONFIG) + FIND_PACKAGE(FONTCONFIG) SET(PODOFO_LIB_FONTCONFIG:STRING) ENDIF(WANT_FONTCONFIG) @@ -307,10 +312,10 @@ ${stlport_libraries_if_use_stlport} ) -IF(LIBFONTCONFIG_FOUND AND WANT_FONTCONFIG) - SET(PODOFO_LIB_DEPENDS ${LIBFONTCONFIG_LIB} ${PODOFO_LIB_DEPENDS}) - INCLUDE_DIRECTORIES(${LIBFONTCONFIG_H}) -ENDIF(LIBFONTCONFIG_FOUND AND WANT_FONTCONFIG) +IF(FONTCONFIG_FOUND AND WANT_FONTCONFIG) + SET(PODOFO_LIB_DEPENDS ${FONTCONFIG_LIBRARIES} ${PODOFO_LIB_DEPENDS}) + INCLUDE_DIRECTORIES(${FONTCONFIG_INCLUDE_DIR}) +ENDIF(FONTCONFIG_FOUND AND WANT_FONTCONFIG) SET(PODOFO_LIB Added: podofo/trunk/cmake/modules/FindFONTCONFIG.cmake =================================================================== --- podofo/trunk/cmake/modules/FindFONTCONFIG.cmake (rev 0) +++ podofo/trunk/cmake/modules/FindFONTCONFIG.cmake 2008-06-20 20:38:02 UTC (rev 853) @@ -0,0 +1,47 @@ +# - Try to find the Fontconfig +# Once done this will define +# +# FONTCONFIG_FOUND - system has Fontconfig +# FONTCONFIG_LIBRARIES - Link these to use FONTCONFIG +# FONTCONFIG_DEFINITIONS - Compiler switches required for using FONTCONFIG + +# Copyright (c) 2006,2007 Laurent Montel, <mo...@kd...> +# +# Redistribution and use is allowed according to the terms of the BSD license. +# For details see the accompanying COPYING-CMAKE-SCRIPTS file. + + +if (FONTCONFIG_LIBRARIES AND FONTCONFIG_INCLUDE_DIR) + + # in cache already + set(FONTCONFIG_FOUND TRUE) + +else (FONTCONFIG_LIBRARIES AND FONTCONFIG_INCLUDE_DIR) + + if (NOT WIN32) + # use pkg-config to get the directories and then use these values + # in the FIND_PATH() and FIND_LIBRARY() calls + include(UsePkgConfig) + + pkgconfig(fontconfig _FONTCONFIGIncDir _FONTCONFIGLinkDir _FONTCONFIGLinkFlags _FONTCONFIGCflags) + + set(FONTCONFIG_DEFINITIONS ${_FONTCONFIGCflags} CACHE INTERNAL "The compilation flags for fontconfig") + endif (NOT WIN32) + + find_path(FONTCONFIG_INCLUDE_DIR fontconfig/fontconfig.h + PATHS + ${_FONTCONFIGIncDir} + /usr/X11/include + ) + + find_library(FONTCONFIG_LIBRARIES NAMES fontconfig + PATHS + ${_FONTCONFIGLinkDir} + ) + + include(FindPackageHandleStandardArgs) + FIND_PACKAGE_HANDLE_STANDARD_ARGS(Fontconfig DEFAULT_MSG FONTCONFIG_LIBRARIES FONTCONFIG_INCLUDE_DIR ) + + mark_as_advanced(FONTCONFIG_LIBRARIES FONTCONFIG_INCLUDE_DIR) + +endif (FONTCONFIG_LIBRARIES AND FONTCONFIG_INCLUDE_DIR) Deleted: podofo/trunk/cmake/modules/FindLIBFONTCONFIG.cmake =================================================================== --- podofo/trunk/cmake/modules/FindLIBFONTCONFIG.cmake 2008-06-20 10:17:22 UTC (rev 852) +++ podofo/trunk/cmake/modules/FindLIBFONTCONFIG.cmake 2008-06-20 20:38:02 UTC (rev 853) @@ -1,10 +0,0 @@ -# fontconfig lives in a subdir off the include path called just `fontconfig' -FIND_PATH(LIBFONTCONFIG_H NAMES fontconfig/fontconfig.h) - -FIND_LIBRARY(LIBFONTCONFIG_LIB NAMES fontconfig) - -IF(LIBFONTCONFIG_H AND LIBFONTCONFIG_LIB) - SET(LIBFONTCONFIG_FOUND TRUE CACHE BOOLEAN "Was fontconfig found") -ELSE(LIBFONTCONFIG_H AND LIBFONTCONFIG_LIB) - SET(LIBFONTCONFIG_FOUND FALSE CACHE BOOLEAN "Was fontconfig found") -ENDIF(LIBFONTCONFIG_H AND LIBFONTCONFIG_LIB) Modified: podofo/trunk/src/PdfDate.cpp =================================================================== --- podofo/trunk/src/PdfDate.cpp 2008-06-20 10:17:22 UTC (rev 852) +++ podofo/trunk/src/PdfDate.cpp 2008-06-20 20:38:02 UTC (rev 853) @@ -18,13 +18,12 @@ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ +#include "PdfDate.h" + +#include <string.h> #include <time.h> #include <sstream> -#include "PdfDate.h" - - - namespace PoDoFo { PdfDate::PdfDate() Modified: podofo/trunk/src/PdfElement.cpp =================================================================== --- podofo/trunk/src/PdfElement.cpp 2008-06-20 10:17:22 UTC (rev 852) +++ podofo/trunk/src/PdfElement.cpp 2008-06-20 20:38:02 UTC (rev 853) @@ -25,6 +25,8 @@ #include "PdfStreamedDocument.h" #include "PdfVecObjects.h" +#include <string.h> + namespace PoDoFo { PdfElement::PdfElement( const char* pszType, PdfVecObjects* pParent ) Modified: podofo/trunk/src/PdfEncoding.cpp =================================================================== --- podofo/trunk/src/PdfEncoding.cpp 2008-06-20 10:17:22 UTC (rev 852) +++ podofo/trunk/src/PdfEncoding.cpp 2008-06-20 20:38:02 UTC (rev 853) @@ -25,6 +25,8 @@ #include "PdfFontMetrics.h" #include "PdfLocale.h" +#include <stdlib.h> +#include <string.h> #include <sstream> namespace PoDoFo { Modified: podofo/trunk/src/PdfEncrypt.cpp =================================================================== --- podofo/trunk/src/PdfEncrypt.cpp 2008-06-20 10:17:22 UTC (rev 852) +++ podofo/trunk/src/PdfEncrypt.cpp 2008-06-20 20:38:02 UTC (rev 853) @@ -29,6 +29,8 @@ #include "PdfFilter.h" #include "PdfRijndael.h" +#include <stdlib.h> +#include <string.h> #include <sstream> namespace PoDoFo { Modified: podofo/trunk/src/PdfFiltersPrivate.cpp =================================================================== --- podofo/trunk/src/PdfFiltersPrivate.cpp 2008-06-20 10:17:22 UTC (rev 852) +++ podofo/trunk/src/PdfFiltersPrivate.cpp 2008-06-20 20:38:02 UTC (rev 853) @@ -32,6 +32,9 @@ } #endif // PODOFO_HAVE_JPEG_LIB +#include <stdlib.h> +#include <string.h> + #ifdef PODOFO_HAVE_TIFF_LIB extern "C" { #ifdef WIN32 // For O_RDONLY Modified: podofo/trunk/src/PdfFont.cpp =================================================================== --- podofo/trunk/src/PdfFont.cpp 2008-06-20 10:17:22 UTC (rev 852) +++ podofo/trunk/src/PdfFont.cpp 2008-06-20 20:38:02 UTC (rev 853) @@ -28,6 +28,8 @@ #include "PdfWriter.h" #include "PdfLocale.h" +#include <stdlib.h> +#include <string.h> #include <sstream> using namespace std; Modified: podofo/trunk/src/PdfFontType1.cpp =================================================================== --- podofo/trunk/src/PdfFontType1.cpp 2008-06-20 10:17:22 UTC (rev 852) +++ podofo/trunk/src/PdfFontType1.cpp 2008-06-20 20:38:02 UTC (rev 853) @@ -25,6 +25,8 @@ #include "PdfName.h" #include "PdfStream.h" +#include <stdlib.h> + namespace PoDoFo { PdfFontType1::PdfFontType1( PdfFontMetrics* pMetrics, const PdfEncoding* const pEncoding, Modified: podofo/trunk/src/PdfInputStream.cpp =================================================================== --- podofo/trunk/src/PdfInputStream.cpp 2008-06-20 10:17:22 UTC (rev 852) +++ podofo/trunk/src/PdfInputStream.cpp 2008-06-20 20:38:02 UTC (rev 853) @@ -23,6 +23,7 @@ #include "PdfInputDevice.h" #include <stdio.h> +#include <string.h> namespace PoDoFo { Modified: podofo/trunk/src/PdfMemStream.cpp =================================================================== --- podofo/trunk/src/PdfMemStream.cpp 2008-06-20 10:17:22 UTC (rev 852) +++ podofo/trunk/src/PdfMemStream.cpp 2008-06-20 20:38:02 UTC (rev 853) @@ -28,6 +28,8 @@ #include "PdfOutputStream.h" #include "PdfVariant.h" +#include <stdlib.h> + namespace PoDoFo { #define STREAM_SIZE_INCREASE 1024 Modified: podofo/trunk/src/PdfName.cpp =================================================================== --- podofo/trunk/src/PdfName.cpp 2008-06-20 10:17:22 UTC (rev 852) +++ podofo/trunk/src/PdfName.cpp 2008-06-20 20:38:02 UTC (rev 853) @@ -23,6 +23,8 @@ #include "PdfOutputDevice.h" #include "PdfTokenizer.h" +#include <string.h> + using namespace std; using PoDoFo::ePdfError_InvalidName; Modified: podofo/trunk/src/PdfOutputDevice.cpp =================================================================== --- podofo/trunk/src/PdfOutputDevice.cpp 2008-06-20 10:17:22 UTC (rev 852) +++ podofo/trunk/src/PdfOutputDevice.cpp 2008-06-20 20:38:02 UTC (rev 853) @@ -24,6 +24,9 @@ #include <fstream> #include <sstream> +#include <stdlib.h> +#include <string.h> + #include "PdfRefCountedBuffer.h" namespace PoDoFo { Modified: podofo/trunk/src/PdfOutputStream.cpp =================================================================== --- podofo/trunk/src/PdfOutputStream.cpp 2008-06-20 10:17:22 UTC (rev 852) +++ podofo/trunk/src/PdfOutputStream.cpp 2008-06-20 20:38:02 UTC (rev 853) @@ -23,6 +23,9 @@ #include "PdfOutputDevice.h" #include "PdfRefCountedBuffer.h" +#include <stdlib.h> +#include <string.h> + namespace PoDoFo { PdfFileOutputStream::PdfFileOutputStream( const char* pszFilename ) Modified: podofo/trunk/src/PdfPainter.cpp =================================================================== --- podofo/trunk/src/PdfPainter.cpp 2008-06-20 10:17:22 UTC (rev 852) +++ podofo/trunk/src/PdfPainter.cpp 2008-06-20 20:38:02 UTC (rev 853) @@ -43,6 +43,8 @@ #include "PdfXObject.h" #include "PdfLocale.h" +#include <stdlib.h> + #define BEZIER_POINTS 13 /* 4/3 * (1-cos 45\x83)/sin 45\x83 = 4/3 * sqrt(2) - 1 */ Modified: podofo/trunk/src/PdfRefCountedBuffer.cpp =================================================================== --- podofo/trunk/src/PdfRefCountedBuffer.cpp 2008-06-20 10:17:22 UTC (rev 852) +++ podofo/trunk/src/PdfRefCountedBuffer.cpp 2008-06-20 20:38:02 UTC (rev 853) @@ -20,9 +20,11 @@ #include "PdfRefCountedBuffer.h" +#include <stdlib.h> +#include <string.h> + namespace PoDoFo { - #define STREAM_SIZE_INCREASE 1024 PdfRefCountedBuffer::PdfRefCountedBuffer( char* pBuffer, long lSize ) Modified: podofo/trunk/src/PdfStream.cpp =================================================================== --- podofo/trunk/src/PdfStream.cpp 2008-06-20 10:17:22 UTC (rev 852) +++ podofo/trunk/src/PdfStream.cpp 2008-06-20 20:38:02 UTC (rev 853) @@ -26,7 +26,11 @@ #include "PdfOutputStream.h" #include "PdfOutputDevice.h" + #include <iostream> + +#include <stdlib.h> + using namespace std; namespace PoDoFo { Modified: podofo/trunk/src/PdfStream.h =================================================================== --- podofo/trunk/src/PdfStream.h 2008-06-20 10:17:22 UTC (rev 852) +++ podofo/trunk/src/PdfStream.h 2008-06-20 20:38:02 UTC (rev 853) @@ -27,6 +27,8 @@ #include "PdfFilter.h" #include "PdfRefCountedBuffer.h" +#include <string.h> + namespace PoDoFo { class PdfInputStream; Modified: podofo/trunk/src/PdfString.cpp =================================================================== --- podofo/trunk/src/PdfString.cpp 2008-06-20 10:17:22 UTC (rev 852) +++ podofo/trunk/src/PdfString.cpp 2008-06-20 20:38:02 UTC (rev 853) @@ -33,6 +33,8 @@ #include <cstdlib> #endif +#include <string.h> + namespace PoDoFo { const PdfString PdfString::StringNull = PdfString(); Modified: podofo/trunk/src/PdfTTFWriter.cpp =================================================================== --- podofo/trunk/src/PdfTTFWriter.cpp 2008-06-20 10:17:22 UTC (rev 852) +++ podofo/trunk/src/PdfTTFWriter.cpp 2008-06-20 20:38:02 UTC (rev 853) @@ -25,6 +25,7 @@ #include "PdfRefCountedBuffer.h" #include "PdfString.h" +#include <algorithm> #include <cmath> #include <ft2build.h> Modified: podofo/trunk/src/PdfTable.cpp =================================================================== --- podofo/trunk/src/PdfTable.cpp 2008-06-20 10:17:22 UTC (rev 852) +++ podofo/trunk/src/PdfTable.cpp 2008-06-20 20:38:02 UTC (rev 853) @@ -27,6 +27,8 @@ #include "PdfPage.h" #include "PdfRect.h" +#include <stdlib.h> + namespace PoDoFo { PdfSimpleTableModel::PdfSimpleTableModel() Modified: podofo/trunk/src/PdfTable.h =================================================================== --- podofo/trunk/src/PdfTable.h 2008-06-20 10:17:22 UTC (rev 852) +++ podofo/trunk/src/PdfTable.h 2008-06-20 20:38:02 UTC (rev 853) @@ -27,6 +27,8 @@ #include "PdfRect.h" #include "PdfString.h" +#include <string.h> + namespace PoDoFo { class PdfCanvas; Modified: podofo/trunk/src/PdfTokenizer.cpp =================================================================== --- podofo/trunk/src/PdfTokenizer.cpp 2008-06-20 10:17:22 UTC (rev 852) +++ podofo/trunk/src/PdfTokenizer.cpp 2008-06-20 20:38:02 UTC (rev 853) @@ -31,6 +31,9 @@ #include <sstream> +#include <stdlib.h> +#include <string.h> + #define PDF_BUFFER 4096 #define DICT_SEP_LENGTH 2 Modified: podofo/trunk/src/PdfVariant.cpp =================================================================== --- podofo/trunk/src/PdfVariant.cpp 2008-06-20 10:17:22 UTC (rev 852) +++ podofo/trunk/src/PdfVariant.cpp 2008-06-20 20:38:02 UTC (rev 853) @@ -28,6 +28,8 @@ #include <sstream> +#include <string.h> + #define NULL_LENGTH 4 #define TRUE_LENGTH 4 #define FALSE_LENGTH 5 Modified: podofo/trunk/src/PdfWriter.cpp =================================================================== --- podofo/trunk/src/PdfWriter.cpp 2008-06-20 10:17:22 UTC (rev 852) +++ podofo/trunk/src/PdfWriter.cpp 2008-06-20 20:38:02 UTC (rev 853) @@ -42,6 +42,7 @@ #define LINEARIZATION_PADDING " " #include <iostream> +#include <stdlib.h> namespace PoDoFo { Modified: podofo/trunk/test/CreationTest/CreationTest.cpp =================================================================== --- podofo/trunk/test/CreationTest/CreationTest.cpp 2008-06-20 10:17:22 UTC (rev 852) +++ podofo/trunk/test/CreationTest/CreationTest.cpp 2008-06-20 20:38:02 UTC (rev 853) @@ -1,4 +1,4 @@ - /*************************************************************************** +/*************************************************************************** * Copyright (C) 2005 by Dominik Seichter * * dom...@we... * * * @@ -46,6 +46,8 @@ #include "PdfInputDevice.h" #include "PdfTTFWriter.h" +#include <stdlib.h> + using namespace PoDoFo; #define CONVERSION_CONSTANT 0.002834645669291339 Modified: podofo/trunk/test/DeviceTest/DeviceTest.cpp =================================================================== --- podofo/trunk/test/DeviceTest/DeviceTest.cpp 2008-06-20 10:17:22 UTC (rev 852) +++ podofo/trunk/test/DeviceTest/DeviceTest.cpp 2008-06-20 20:38:02 UTC (rev 853) @@ -24,6 +24,7 @@ #include "PdfOutputStream.h" #include <stdio.h> +#include <string.h> #define BUFFER_SIZE 4096 using namespace PoDoFo; Modified: podofo/trunk/test/FilterTest/FilterTest.cpp =================================================================== --- podofo/trunk/test/FilterTest/FilterTest.cpp 2008-06-20 10:17:22 UTC (rev 852) +++ podofo/trunk/test/FilterTest/FilterTest.cpp 2008-06-20 20:38:02 UTC (rev 853) @@ -25,6 +25,8 @@ #include "../PdfTest.h" +#include <stdlib.h> + using namespace PoDoFo; namespace { Modified: podofo/trunk/test/PdfString_Test.cpp =================================================================== --- podofo/trunk/test/PdfString_Test.cpp 2008-06-20 10:17:22 UTC (rev 852) +++ podofo/trunk/test/PdfString_Test.cpp 2008-06-20 20:38:02 UTC (rev 853) @@ -26,6 +26,9 @@ #include <ostream> #include <sstream> +#include <stdlib.h> +#include <string.h> + using namespace PoDoFo; #if _MSC_VER Modified: podofo/trunk/test/VariantTest/VariantTest.cpp =================================================================== --- podofo/trunk/test/VariantTest/VariantTest.cpp 2008-06-20 10:17:22 UTC (rev 852) +++ podofo/trunk/test/VariantTest/VariantTest.cpp 2008-06-20 20:38:02 UTC (rev 853) @@ -27,6 +27,8 @@ #include "PdfTokenizer.h" #include <iostream> +#include <stdlib.h> +#include <string.h> using namespace PoDoFo; Modified: podofo/trunk/test/unit/CMakeLists.txt =================================================================== --- podofo/trunk/test/unit/CMakeLists.txt 2008-06-20 10:17:22 UTC (rev 852) +++ podofo/trunk/test/unit/CMakeLists.txt 2008-06-20 20:38:02 UTC (rev 853) @@ -6,7 +6,7 @@ # repeat for each test ADD_EXECUTABLE( podofo-test main.cpp EncryptTest.cpp FilterTest.cpp NameTest.cpp TokenizerTest.cpp StringTest.cpp ) ADD_DEPENDENCIES( podofo-test ${PODOFO_DEPEND_TARGET}) - TARGET_LINK_LIBRARIES( podofo-test ${PODOFO_LIB} ${PODOFO_LIB_DEPENDS} cppunit ) + TARGET_LINK_LIBRARIES( podofo-test ${PODOFO_LIB} ${PODOFO_LIB_DEPENDS} ${CPPUNIT_LIBRARIES} ) SET_TARGET_PROPERTIES( podofo-test PROPERTIES COMPILE_FLAGS "${PODOFO_CFLAGS}") ADD_TEST( podofo-test podofo-test ) ENDIF(HAVE_CPPUNIT) Modified: podofo/trunk/test/unit/EncryptTest.cpp =================================================================== --- podofo/trunk/test/unit/EncryptTest.cpp 2008-06-20 10:17:22 UTC (rev 852) +++ podofo/trunk/test/unit/EncryptTest.cpp 2008-06-20 20:38:02 UTC (rev 853) @@ -22,6 +22,8 @@ #include <podofo.h> +#include <stdlib.h> + using namespace PoDoFo; // Registers the fixture into the 'registry' Modified: podofo/trunk/test/unit/FilterTest.cpp =================================================================== --- podofo/trunk/test/unit/FilterTest.cpp 2008-06-20 10:17:22 UTC (rev 852) +++ podofo/trunk/test/unit/FilterTest.cpp 2008-06-20 20:38:02 UTC (rev 853) @@ -22,6 +22,8 @@ #include <cppunit/Asserter.h> +#include <stdlib.h> + using namespace PoDoFo; CPPUNIT_TEST_SUITE_REGISTRATION( FilterTest ); Modified: podofo/trunk/tools/podofoencrypt/podofoencrypt.cpp =================================================================== --- podofo/trunk/tools/podofoencrypt/podofoencrypt.cpp 2008-06-20 10:17:22 UTC (rev 852) +++ podofo/trunk/tools/podofoencrypt/podofoencrypt.cpp 2008-06-20 20:38:02 UTC (rev 853) @@ -22,6 +22,8 @@ using namespace PoDoFo; +#include <stdlib.h> + #ifdef _HAVE_CONFIG #include <config.h> #endif // _HAVE_CONFIG Modified: podofo/trunk/tools/podofoimgextract/ImageExtractor.cpp =================================================================== --- podofo/trunk/tools/podofoimgextract/ImageExtractor.cpp 2008-06-20 10:17:22 UTC (rev 852) +++ podofo/trunk/tools/podofoimgextract/ImageExtractor.cpp 2008-06-20 20:38:02 UTC (rev 853) @@ -21,6 +21,7 @@ #include "ImageExtractor.h" #include <sys/stat.h> +#include <stdlib.h> ImageExtractor::ImageExtractor() : m_pszOutputDirectory( NULL ), m_nCount( 0 ) Modified: podofo/trunk/tools/podofoimgextract/podofoimgextract.cpp =================================================================== --- podofo/trunk/tools/podofoimgextract/podofoimgextract.cpp 2008-06-20 10:17:22 UTC (rev 852) +++ podofo/trunk/tools/podofoimgextract/podofoimgextract.cpp 2008-06-20 20:38:02 UTC (rev 853) @@ -21,6 +21,7 @@ #include "ImageExtractor.h" #include <stdio.h> +#include <stdlib.h> #ifdef _HAVE_CONFIG #include <config.h> Modified: podofo/trunk/tools/podofomerge/podofomerge.cpp =================================================================== --- podofo/trunk/tools/podofomerge/podofomerge.cpp 2008-06-20 10:17:22 UTC (rev 852) +++ podofo/trunk/tools/podofomerge/podofomerge.cpp 2008-06-20 20:38:02 UTC (rev 853) @@ -24,6 +24,8 @@ #include <PdfMemDocument.h> #include <PdfOutlines.h> +#include <stdlib.h> + using namespace PoDoFo; #ifdef _HAVE_CONFIG Modified: podofo/trunk/tools/podofopdfinfo/podofopdfinfo.cpp =================================================================== --- podofo/trunk/tools/podofopdfinfo/podofopdfinfo.cpp 2008-06-20 10:17:22 UTC (rev 852) +++ podofo/trunk/tools/podofopdfinfo/podofopdfinfo.cpp 2008-06-20 20:38:02 UTC (rev 853) @@ -22,6 +22,8 @@ #include <PdfDefines.h> #include "pdfinfo.h" +#include <stdlib.h> + #ifdef _HAVE_CONFIG #include <config.h> #endif // _HAVE_CONFIG Modified: podofo/trunk/tools/podofotxt2pdf/podofotxt2pdf.cpp =================================================================== --- podofo/trunk/tools/podofotxt2pdf/podofotxt2pdf.cpp 2008-06-20 10:17:22 UTC (rev 852) +++ podofo/trunk/tools/podofotxt2pdf/podofotxt2pdf.cpp 2008-06-20 20:38:02 UTC (rev 853) @@ -27,6 +27,9 @@ #include <PdfPage.h> #include <PdfPainterMM.h> +#include <stdlib.h> +#include <string.h> + using namespace PoDoFo; #ifdef _HAVE_CONFIG Modified: podofo/trunk/tools/podofotxtextract/podofotxtextract.cpp =================================================================== --- podofo/trunk/tools/podofotxtextract/podofotxtextract.cpp 2008-06-20 10:17:22 UTC (rev 852) +++ podofo/trunk/tools/podofotxtextract/podofotxtextract.cpp 2008-06-20 20:38:02 UTC (rev 853) @@ -21,6 +21,7 @@ #include "TextExtractor.h" #include <stdio.h> +#include <stdlib.h> #ifdef _HAVE_CONFIG #include <config.h> Modified: podofo/trunk/tools/podofouncompress/podofouncompress.cpp =================================================================== --- podofo/trunk/tools/podofouncompress/podofouncompress.cpp 2008-06-20 10:17:22 UTC (rev 852) +++ podofo/trunk/tools/podofouncompress/podofouncompress.cpp 2008-06-20 20:38:02 UTC (rev 853) @@ -21,6 +21,8 @@ #include <PdfDefines.h> #include "Uncompress.h" +#include <stdlib.h> + using namespace PoDoFo; #ifdef _HAVE_CONFIG This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |