OLD | NEW |
(Empty) | |
| 1 /* poppler/poppler-config.h. Generated from poppler-config.h.in by configure.
*/ |
| 2 //================================================= -*- mode: c++ -*- ==== |
| 3 // |
| 4 // poppler-config.h |
| 5 // |
| 6 // Copyright 1996-2011 Glyph & Cog, LLC |
| 7 // |
| 8 //======================================================================== |
| 9 |
| 10 #ifndef POPPLER_CONFIG_H |
| 11 #define POPPLER_CONFIG_H |
| 12 |
| 13 // We duplicate some of the config.h #define's here since they are |
| 14 // used in some of the header files we install. The #ifndef/#endif |
| 15 // around #undef look odd, but it's to silence warnings about |
| 16 // redefining those symbols. |
| 17 |
| 18 /* Defines the poppler version. */ |
| 19 #ifndef POPPLER_VERSION |
| 20 #define POPPLER_VERSION "0.22.5" |
| 21 #endif |
| 22 |
| 23 /* Enable multithreading support. */ |
| 24 #ifndef MULTITHREADED |
| 25 #define MULTITHREADED 1 |
| 26 #endif |
| 27 |
| 28 /* Use fixedpoint. */ |
| 29 #ifndef USE_FIXEDPOINT |
| 30 /* #undef USE_FIXEDPOINT */ |
| 31 #endif |
| 32 |
| 33 /* Use single precision arithmetic in the Splash backend */ |
| 34 #ifndef USE_FLOAT |
| 35 /* #undef USE_FLOAT */ |
| 36 #endif |
| 37 |
| 38 /* Include support for OPI comments. */ |
| 39 #ifndef OPI_SUPPORT |
| 40 #define OPI_SUPPORT 1 |
| 41 #endif |
| 42 |
| 43 /* Enable word list support. */ |
| 44 #ifndef TEXTOUT_WORD_LIST |
| 45 #define TEXTOUT_WORD_LIST 1 |
| 46 #endif |
| 47 |
| 48 /* Support for curl is compiled in. */ |
| 49 #ifndef POPPLER_HAS_CURL_SUPPORT |
| 50 /* #undef POPPLER_HAS_CURL_SUPPORT */ |
| 51 #endif |
| 52 |
| 53 /* Use libjpeg instead of builtin jpeg decoder. */ |
| 54 #ifndef ENABLE_LIBJPEG |
| 55 /* #undef ENABLE_LIBJPEG */ |
| 56 #endif |
| 57 |
| 58 /* Build against libtiff. */ |
| 59 #ifndef ENABLE_LIBTIFF |
| 60 /* #undef ENABLE_LIBTIFF */ |
| 61 #endif |
| 62 |
| 63 /* Build against libpng. */ |
| 64 #ifndef ENABLE_LIBPNG |
| 65 /* #undef ENABLE_LIBPNG */ |
| 66 #endif |
| 67 |
| 68 /* Use zlib instead of builtin zlib decoder. */ |
| 69 #ifndef ENABLE_ZLIB |
| 70 /* #undef ENABLE_ZLIB */ |
| 71 #endif |
| 72 |
| 73 /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'. |
| 74 */ |
| 75 #ifndef HAVE_DIRENT_H |
| 76 #define HAVE_DIRENT_H 1 |
| 77 #endif |
| 78 |
| 79 /* Defines if gettimeofday is available on your system */ |
| 80 #ifndef HAVE_GETTIMEOFDAY |
| 81 #define HAVE_GETTIMEOFDAY 1 |
| 82 #endif |
| 83 |
| 84 /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */ |
| 85 #ifndef HAVE_NDIR_H |
| 86 /* #undef HAVE_NDIR_H */ |
| 87 #endif |
| 88 |
| 89 /* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'. |
| 90 */ |
| 91 #ifndef HAVE_SYS_DIR_H |
| 92 /* #undef HAVE_SYS_DIR_H */ |
| 93 #endif |
| 94 |
| 95 /* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'. |
| 96 */ |
| 97 #ifndef HAVE_SYS_NDIR_H |
| 98 /* #undef HAVE_SYS_NDIR_H */ |
| 99 #endif |
| 100 |
| 101 /* Have FreeType2 include files */ |
| 102 #ifndef HAVE_FREETYPE_H |
| 103 #define HAVE_FREETYPE_H 1 |
| 104 #endif |
| 105 |
| 106 /* Defines if use cms */ |
| 107 #ifndef USE_CMS |
| 108 /* #undef USE_CMS */ |
| 109 #endif |
| 110 |
| 111 // Also, there are preprocessor symbols in the header files |
| 112 // that are used but never defined when building poppler using configure |
| 113 // or cmake: DISABLE_OUTLINE, DEBUG_MEM, SPLASH_CMYK, HAVE_T1LIB_H, |
| 114 // ENABLE_PLUGINS, DEBUG_FORMS, HAVE_FREETYPE_FREETYPE_H |
| 115 |
| 116 //------------------------------------------------------------------------ |
| 117 // version |
| 118 //------------------------------------------------------------------------ |
| 119 |
| 120 // copyright notice |
| 121 #define popplerCopyright "Copyright 2005-2013 The Poppler Developers - http://po
ppler.freedesktop.org" |
| 122 #define xpdfCopyright "Copyright 1996-2011 Glyph & Cog, LLC" |
| 123 |
| 124 //------------------------------------------------------------------------ |
| 125 // popen |
| 126 //------------------------------------------------------------------------ |
| 127 |
| 128 #if defined(_MSC_VER) || defined(__BORLANDC__) |
| 129 #define popen _popen |
| 130 #define pclose _pclose |
| 131 #endif |
| 132 |
| 133 #if defined(VMS) || defined(VMCMS) || defined(DOS) || defined(OS2) || defined(__
EMX__) || defined(_WIN32) || defined(__DJGPP__) || defined(MACOS) |
| 134 #define POPEN_READ_MODE "rb" |
| 135 #else |
| 136 #define POPEN_READ_MODE "r" |
| 137 #endif |
| 138 |
| 139 //------------------------------------------------------------------------ |
| 140 // Win32 stuff |
| 141 //------------------------------------------------------------------------ |
| 142 |
| 143 #if defined(_WIN32) && !defined(_MSC_VER) |
| 144 #include <windef.h> |
| 145 #else |
| 146 #define CDECL |
| 147 #endif |
| 148 |
| 149 #if defined(_WIN32) |
| 150 #ifdef _MSC_VER |
| 151 #define strtok_r strtok_s |
| 152 #elif __MINGW32__ && !defined(__WINPTHREADS_VERSION) |
| 153 char * strtok_r (char *s, const char *delim, char **save_ptr); |
| 154 #endif |
| 155 #endif |
| 156 |
| 157 //------------------------------------------------------------------------ |
| 158 // Compiler |
| 159 //------------------------------------------------------------------------ |
| 160 |
| 161 #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4) |
| 162 #define GCC_PRINTF_FORMAT(fmt_index, va_index) \ |
| 163 __attribute__((__format__(__printf__, fmt_index, va_index))) |
| 164 #else |
| 165 #define GCC_PRINTF_FORMAT(fmt_index, va_index) |
| 166 #endif |
| 167 |
| 168 #if defined(_MSC_VER) |
| 169 #define fmax(a, b) max(a, b) |
| 170 #define fmin(a, b) min(a, b) |
| 171 #endif |
| 172 |
| 173 |
| 174 #endif /* POPPLER_CONFIG_H */ |
OLD | NEW |