1 //================================================= -*- mode: c++ -*- ====
5 // Copyright 1996-2004 Glyph & Cog, LLC
7 //========================================================================
9 #ifndef POPPLER_CONFIG_H
10 #define POPPLER_CONFIG_H
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.
17 /* Enable multithreading support. */
18 #ifndef MULTITHREADING
22 /* Full path for the system-wide xpdfrc file. */
27 /* Include support for OPI comments. */
32 /* Enable word list support. */
33 #ifndef TEXTOUT_WORD_LIST
34 #undef TEXTOUT_WORD_LIST
37 // Also, there's a couple of preprocessor symbols in the header files
38 // that are used but never defined: DISABLE_OUTLINE, DEBUG_MEM and
40 //------------------------------------------------------------------------
42 //------------------------------------------------------------------------
45 #define xpdfVersion "3.00"
46 #define xpdfVersionNum 3.00
47 #define xpdfMajorVersion 3
48 #define xpdfMinorVersion 0
49 #define xpdfMajorVersionStr "3"
50 #define xpdfMinorVersionStr "0"
52 // supported PDF version
53 #define supportedPDFVersionStr "1.5"
54 #define supportedPDFVersionNum 1.5
57 #define xpdfCopyright "Copyright 1996-2004 Glyph & Cog, LLC"
59 // Windows resource file stuff
60 #define winxpdfVersion "WinXpdf 3.00"
61 #define xpdfCopyrightAmp "Copyright 1996-2004 Glyph && Cog, LLC"
63 //------------------------------------------------------------------------
65 //------------------------------------------------------------------------
67 // default paper size (in points) for PostScript output
69 #define defPaperWidth 595 // ISO A4 (210x297 mm)
70 #define defPaperHeight 842
72 #define defPaperWidth 612 // American letter (8.5x11")
73 #define defPaperHeight 792
76 //------------------------------------------------------------------------
77 // config file (xpdfrc) path
78 //------------------------------------------------------------------------
80 // user config file name, relative to the user's home directory
81 #if defined(VMS) || (defined(WIN32) && !defined(__CYGWIN32__))
82 #define xpdfUserConfigFile "xpdfrc"
84 #define xpdfUserConfigFile ".xpdfrc"
87 // system config file name (set via the configure script)
89 #define xpdfSysConfigFile SYSTEM_XPDFRC
91 // under Windows, we get the directory with the executable and then
92 // append this file name
93 #define xpdfSysConfigFile "xpdfrc"
96 //------------------------------------------------------------------------
97 // X-related constants
98 //------------------------------------------------------------------------
100 // default maximum size of color cube to allocate
101 #define defaultRGBCube 5
103 // number of fonts (combined t1lib, FreeType, X server) to cache
104 #define xOutFontCacheSize 64
106 // number of Type 3 fonts to cache
107 #define xOutT3FontCacheSize 8
109 //------------------------------------------------------------------------
111 //------------------------------------------------------------------------
113 #if defined(_MSC_VER) || defined(__BORLANDC__)
115 #define pclose _pclose
118 #if defined(VMS) || defined(VMCMS) || defined(DOS) || defined(OS2) || defined(__EMX__) || defined(WIN32) || defined(__DJGPP__) || defined(MACOS)
119 #define POPEN_READ_MODE "rb"
121 #define POPEN_READ_MODE "r"
124 //------------------------------------------------------------------------
126 //------------------------------------------------------------------------
132 #if defined(_MSC_VER) || defined(__BORLANDC__)
133 #define CDECL __cdecl
138 //------------------------------------------------------------------------
140 //------------------------------------------------------------------------
142 #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)
143 #define GCC_PRINTF_FORMAT(fmt_index, va_index) \
144 __attribute__((__format__(__printf__, fmt_index, va_index)))
146 #define GCC_PRINTF_FORMAT(fmt_index, va_index)
150 #endif /* POPPLER_CONFIG_H */