goo/GooTimer.h | 2 + goo/ImgWriter.h | 3 - goo/JpegWriter.h | 3 + goo/PNGWriter.h | 4 +- goo/TiffWriter.h | 3 + goo/gfile.h | 3 + poppler/DCTStream.h | 5 +-- poppler/FlateStream.h | 5 +-- poppler/Gfx.h | 3 + poppler/GfxState.h | 2 + poppler/Stream.h | 3 + poppler/poppler-config.h.cmake | 63 +++++++++++++++++++++++++++++++++++++++++ poppler/poppler-config.h.in | 63 +++++++++++++++++++++++++++++++++++++++++ splash/SplashFTFont.h | 4 +- splash/SplashMath.h | 4 +- 15 files changed, 153 insertions(+), 17 deletions(-)
New commits: commit a8fca630d592941c033ca6a380bf46b6e733a748 Author: Albert Astals Cid <[email protected]> Date: Mon Jul 11 14:57:33 2011 +0100 Sanitize headers a big * Remove includes to config.h as that file does not exist * Add to poppler-config.h all the defines we define in the configure/cmake process and are used in headers * Include poppker-config.h where needed diff --git a/goo/GooTimer.h b/goo/GooTimer.h index f55ffcc..d700e50 100755 --- a/goo/GooTimer.h +++ b/goo/GooTimer.h @@ -7,6 +7,7 @@ // Copyright 2005 Jonathan Blandford <[email protected]> // Copyright 2007 Krzysztof Kowalczyk <[email protected]> // Copyright 2010 Hib Eris <[email protected]> +// Copyright 2011 Albert Astals cid <[email protected]> // Inspired by gtimer.c in glib, which is Copyright 2000 by the GLib Team // //======================================================================== @@ -18,6 +19,7 @@ #pragma interface #endif +#include "poppler/poppler-config.h" #include "gtypes.h" #ifdef HAVE_GETTIMEOFDAY #include <sys/time.h> diff --git a/goo/ImgWriter.h b/goo/ImgWriter.h index f44c85d..50fe9d7 100644 --- a/goo/ImgWriter.h +++ b/goo/ImgWriter.h @@ -5,7 +5,7 @@ // This file is licensed under the GPLv2 or later // // Copyright (C) 2009 Stefan Thomas <[email protected]> -// Copyright (C) 2009 Albert Astals Cid <[email protected]> +// Copyright (C) 2009, 2011 Albert Astals Cid <[email protected]> // Copyright (C) 2010 Adrian Johnson <[email protected]> // Copyright (C) 2010 Brian Cameron <[email protected]> // @@ -14,7 +14,6 @@ #ifndef IMGWRITER_H #define IMGWRITER_H -#include <config.h> #include <stdio.h> class ImgWriter diff --git a/goo/JpegWriter.h b/goo/JpegWriter.h index 1f7a738..cd2a035 100644 --- a/goo/JpegWriter.h +++ b/goo/JpegWriter.h @@ -9,13 +9,14 @@ // Copyright (C) 2010 Jürg Billeter <[email protected]> // Copyright (C) 2010 Harry Roberts <[email protected]> // Copyright (C) 2010 Brian Cameron <[email protected]> +// Copyright (C) 2011 Albert Astals Cid <[email protected]> // //======================================================================== #ifndef JPEGWRITER_H #define JPEGWRITER_H -#include <config.h> +#include "poppler/poppler-config.h" #ifdef ENABLE_LIBJPEG diff --git a/goo/PNGWriter.h b/goo/PNGWriter.h index 64ffc67..0f79bf9 100644 --- a/goo/PNGWriter.h +++ b/goo/PNGWriter.h @@ -6,7 +6,7 @@ // // Copyright (C) 2009 Warren Toomey <[email protected]> // Copyright (C) 2009 Shen Liang <[email protected]> -// Copyright (C) 2009 Albert Astals Cid <[email protected]> +// Copyright (C) 2009, 2011 Albert Astals Cid <[email protected]> // Copyright (C) 2009 Stefan Thomas <[email protected]> // Copyright (C) 2010 Adrian Johnson <[email protected]> // @@ -15,7 +15,7 @@ #ifndef PNGWRITER_H #define PNGWRITER_H -#include <config.h> +#include "poppler/poppler-config.h" #ifdef ENABLE_LIBPNG diff --git a/goo/TiffWriter.h b/goo/TiffWriter.h index 8c9e04a..b2b0ea9 100644 --- a/goo/TiffWriter.h +++ b/goo/TiffWriter.h @@ -5,13 +5,14 @@ // This file is licensed under the GPLv2 or later // // Copyright (C) 2010 William Bader <[email protected]> +// Copyright (C) 2011 Albert Astals Cid <[email protected]> // //======================================================================== #ifndef TIFFWRITER_H #define TIFFWRITER_H -#include <config.h> +#include "poppler/poppler-config.h" #ifdef ENABLE_LIBTIFF diff --git a/goo/gfile.h b/goo/gfile.h index 17aea02..0bc010e 100644 --- a/goo/gfile.h +++ b/goo/gfile.h @@ -16,7 +16,7 @@ // under GPL version 2 or later // // Copyright (C) 2006 Kristian Høgsberg <[email protected]> -// Copyright (C) 2009 Albert Astals Cid <[email protected]> +// Copyright (C) 2009, 2011 Albert Astals Cid <[email protected]> // Copyright (C) 2009 Kovid Goyal <[email protected]> // // To see a description of the changes please see the Changelog file that @@ -27,6 +27,7 @@ #ifndef GFILE_H #define GFILE_H +#include "poppler/poppler-config.h" #include <stdio.h> #include <stdlib.h> #include <stddef.h> diff --git a/poppler/DCTStream.h b/poppler/DCTStream.h index fb85e5f..8f1fc85 100644 --- a/poppler/DCTStream.h +++ b/poppler/DCTStream.h @@ -6,7 +6,7 @@ // // Copyright 2005 Jeff Muizelaar <[email protected]> // Copyright 2005 Martin Kretzschmar <[email protected]> -// Copyright 2005-2007, 2009, 2010 Albert Astals Cid <[email protected]> +// Copyright 2005-2007, 2009-2011 Albert Astals Cid <[email protected]> // Copyright 2010 Carlos Garcia Campos <[email protected]> // Copyright 2011 Daiki Ueno <[email protected]> // @@ -14,7 +14,6 @@ #ifndef DCTSTREAM_H #define DCTSTREAM_H -#include <config.h> #ifdef USE_GCC_PRAGMAS #pragma interface @@ -25,6 +24,7 @@ #pragma implementation #endif +#include "poppler-config.h" #include <stdio.h> #include <stdlib.h> #include <stddef.h> @@ -36,7 +36,6 @@ #include <ctype.h> #include "goo/gmem.h" #include "goo/gfile.h" -#include "poppler-config.h" #include "Error.h" #include "Object.h" #include "Decrypt.h" diff --git a/poppler/FlateStream.h b/poppler/FlateStream.h index 99b3d0a..dba00d0 100644 --- a/poppler/FlateStream.h +++ b/poppler/FlateStream.h @@ -3,7 +3,7 @@ // FlateStream.h // // Copyright (C) 2005, Jeff Muizelaar <[email protected]> -// Copyright (C) 2010, Albert Astals Cid <[email protected]> +// Copyright (C) 2010, 2011, Albert Astals Cid <[email protected]> // // This file is under the GPLv2 or later license // @@ -11,7 +11,6 @@ #ifndef FLATESTREAM_H #define FLATESTREAM_H -#include <config.h> #ifdef USE_GCC_PRAGMAS #pragma interface @@ -22,6 +21,7 @@ #pragma implementation #endif +#include "poppler-config.h" #include <stdio.h> #include <stdlib.h> #include <stddef.h> @@ -32,7 +32,6 @@ #include <ctype.h> #include "goo/gmem.h" #include "goo/gfile.h" -#include "poppler-config.h" #include "Error.h" #include "Object.h" #include "Decrypt.h" diff --git a/poppler/Gfx.h b/poppler/Gfx.h index d88b8d8..ce7b2d8 100644 --- a/poppler/Gfx.h +++ b/poppler/Gfx.h @@ -17,7 +17,7 @@ // Copyright (C) 2007 Iñigo MartÃnez <[email protected]> // Copyright (C) 2008 Brad Hards <[email protected]> // Copyright (C) 2008, 2010 Carlos Garcia Campos <[email protected]> -// Copyright (C) 2009, 2010 Albert Astals Cid <[email protected]> +// Copyright (C) 2009-2011 Albert Astals Cid <[email protected]> // Copyright (C) 2009, 2010 Thomas Freitag <[email protected]> // Copyright (C) 2010 David Benjamin <[email protected]> // Copyright (C) 2010 Christian Feuersänger <[email protected]> @@ -34,6 +34,7 @@ #pragma interface #endif +#include "poppler-config.h" #include "goo/gtypes.h" #include "goo/GooList.h" #include "GfxState.h" diff --git a/poppler/GfxState.h b/poppler/GfxState.h index 099b41c..b7f94cd 100644 --- a/poppler/GfxState.h +++ b/poppler/GfxState.h @@ -33,6 +33,8 @@ #pragma interface #endif +#include "poppler-config.h" + #include "goo/gtypes.h" #include "Object.h" #include "Function.h" diff --git a/poppler/Stream.h b/poppler/Stream.h index fce6590..4f2a08b 100644 --- a/poppler/Stream.h +++ b/poppler/Stream.h @@ -15,7 +15,7 @@ // // Copyright (C) 2005 Jeff Muizelaar <[email protected]> // Copyright (C) 2008 Julien Rebetez <[email protected]> -// Copyright (C) 2008, 2010 Albert Astals Cid <[email protected]> +// Copyright (C) 2008, 2010, 2011 Albert Astals Cid <[email protected]> // Copyright (C) 2009 Carlos Garcia Campos <[email protected]> // Copyright (C) 2009 Stefan Thomas <[email protected]> // Copyright (C) 2010 Hib Eris <[email protected]> @@ -33,6 +33,7 @@ #pragma interface #endif +#include "poppler-config.h" #include <stdio.h> #include "goo/gtypes.h" #include "Object.h" diff --git a/poppler/poppler-config.h.cmake b/poppler/poppler-config.h.cmake index 2c47ab3..066111c 100644 --- a/poppler/poppler-config.h.cmake +++ b/poppler/poppler-config.h.cmake @@ -24,6 +24,11 @@ #cmakedefine USE_FIXEDPOINT 1 #endif +/* Use single precision arithmetic in the Splash backend */ +#ifndef USE_FLOAT +#cmakedefine USE_FLOAT 1 +#endif + /* Include support for OPI comments. */ #ifndef OPI_SUPPORT #cmakedefine OPI_SUPPORT 1 @@ -49,6 +54,64 @@ #cmakedefine POPPLER_HAS_CURL_SUPPORT 1 #endif +/* Use libjpeg instead of builtin jpeg decoder. */ +#ifndef ENABLE_LIBJPEG +#cmakedefine ENABLE_LIBJPEG 1 +#endif + +/* Build against libtiff. */ +#ifndef ENABLE_LIBTIFF +#cmakedefine ENABLE_LIBTIFF 1 +#endif + +/* Build against libpng. */ +#ifndef ENABLE_LIBPNG +#cmakedefine ENABLE_LIBPNG 1 +#endif + +/* Use zlib instead of builtin zlib decoder. */ +#ifndef ENABLE_ZLIB +#cmakedefine ENABLE_ZLIB 1 +#endif + +/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'. + */ +#ifndef HAVE_DIRENT_H +#cmakedefine HAVE_DIRENT_H 1 +#endif + +/* Defines if gettimeofday is available on your system */ +#ifndef HAVE_GETTIMEOFDAY +#cmakedefine HAVE_GETTIMEOFDAY 1 +#endif + +/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */ +#ifndef HAVE_NDIR_H +#cmakedefine HAVE_NDIR_H 1 +#endif + +/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'. + */ +#ifndef HAVE_SYS_DIR_H +#cmakedefine HAVE_SYS_DIR_H 1 +#endif + +/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'. + */ +#ifndef HAVE_SYS_NDIR_H +#cmakedefine HAVE_SYS_NDIR_H 1 +#endif + +/* Have FreeType2 include files */ +#ifndef HAVE_FREETYPE_H +#cmakedefine HAVE_FREETYPE_H 1 +#endif + +/* Defines if use cms */ +#ifndef USE_CMS +#cmakedefine USE_CMS 1 +#endif + // Also, there's a couple of preprocessor symbols in the header files // that are used but never defined: DISABLE_OUTLINE, DEBUG_MEM and diff --git a/poppler/poppler-config.h.in b/poppler/poppler-config.h.in index f2b70cc..81edac5 100644 --- a/poppler/poppler-config.h.in +++ b/poppler/poppler-config.h.in @@ -24,6 +24,11 @@ #undef USE_FIXEDPOINT #endif +/* Use single precision arithmetic in the Splash backend */ +#ifndef USE_FLOAT +#undef USE_FLOAT +#endif + /* Include support for OPI comments. */ #ifndef OPI_SUPPORT #undef OPI_SUPPORT @@ -49,6 +54,64 @@ #undef POPPLER_HAS_CURL_SUPPORT #endif +/* Use libjpeg instead of builtin jpeg decoder. */ +#ifndef ENABLE_LIBJPEG +#undef ENABLE_LIBJPEG +#endif + +/* Build against libtiff. */ +#ifndef ENABLE_LIBTIFF +#undef ENABLE_LIBTIFF +#endif + +/* Build against libpng. */ +#ifndef ENABLE_LIBPNG +#undef ENABLE_LIBPNG +#endif + +/* Use zlib instead of builtin zlib decoder. */ +#ifndef ENABLE_ZLIB +#undef ENABLE_ZLIB +#endif + +/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'. + */ +#ifndef HAVE_DIRENT_H +#undef HAVE_DIRENT_H +#endif + +/* Defines if gettimeofday is available on your system */ +#ifndef HAVE_GETTIMEOFDAY +#undef HAVE_GETTIMEOFDAY +#endif + +/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */ +#ifndef HAVE_NDIR_H +#undef HAVE_NDIR_H +#endif + +/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'. + */ +#ifndef HAVE_SYS_DIR_H +#undef HAVE_SYS_DIR_H +#endif + +/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'. + */ +#ifndef HAVE_SYS_NDIR_H +#undef HAVE_SYS_NDIR_H +#endif + +/* Have FreeType2 include files */ +#ifndef HAVE_FREETYPE_H +#undef HAVE_FREETYPE_H +#endif + +/* Defines if use cms */ +#ifndef USE_CMS +#undef USE_CMS +#endif + // Also, there's a couple of preprocessor symbols in the header files // that are used but never defined: DISABLE_OUTLINE, DEBUG_MEM and diff --git a/splash/SplashFTFont.h b/splash/SplashFTFont.h index 8311907..157eff3 100644 --- a/splash/SplashFTFont.h +++ b/splash/SplashFTFont.h @@ -11,7 +11,7 @@ // All changes made under the Poppler project to this file are licensed // under GPL version 2 or later // -// Copyright (C) 2007-2009 Albert Astals Cid <[email protected]> +// Copyright (C) 2007-2009, 2011 Albert Astals Cid <[email protected]> // Copyright (C) 2009 Petr Gajdos <[email protected]> // Copyright (C) 2011 Andreas Hartmetz <[email protected]> // @@ -23,6 +23,8 @@ #ifndef SPLASHFTFONT_H #define SPLASHFTFONT_H +#include "poppler/poppler-config.h" + #if HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H #ifdef USE_GCC_PRAGMAS diff --git a/splash/SplashMath.h b/splash/SplashMath.h index 0b07567..924af6a 100644 --- a/splash/SplashMath.h +++ b/splash/SplashMath.h @@ -11,7 +11,7 @@ // All changes made under the Poppler project to this file are licensed // under GPL version 2 or later // -// Copyright (C) 2009, 2010 Albert Astals Cid <[email protected]> +// Copyright (C) 2009-2011 Albert Astals Cid <[email protected]> // // To see a description of the changes please see the Changelog file that // came with your tarball or type make ChangeLog if you are building from git @@ -21,6 +21,8 @@ #ifndef SPLASHMATH_H #define SPLASHMATH_H +#include "poppler/poppler-config.h" + #if USE_FIXEDPOINT #include "goo/FixedPoint.h" #else
_______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
