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