SmartPDF - lightweight pdf viewer app for rosapps
[reactos.git] / rosapps / smartpdf / src / poppler-config.h
1 //================================================= -*- mode: c++ -*- ====
2 //
3 // poppler-config.h
4 //
5 // Copyright 1996-2004 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 /* Enable multithreading support. */
18 #ifndef MULTITHREADING
19 #undef MULTITHREADED
20 #endif
21
22 /* Full path for the system-wide xpdfrc file. */
23 #ifndef SYSTEM_XPDFRC
24 #undef SYSTEM_XPDFRC
25 #endif
26
27 /* Include support for OPI comments. */
28 #ifndef OPI_SUPPORT
29 #undef OPI_SUPPORT
30 #endif
31
32 /* Enable word list support. */
33 #ifndef TEXTOUT_WORD_LIST
34 #undef TEXTOUT_WORD_LIST
35 #endif
36
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
39
40 //------------------------------------------------------------------------
41 // version
42 //------------------------------------------------------------------------
43
44 // xpdf version
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"
51
52 // supported PDF version
53 #define supportedPDFVersionStr "1.5"
54 #define supportedPDFVersionNum 1.5
55
56 // copyright notice
57 #define xpdfCopyright "Copyright 1996-2004 Glyph & Cog, LLC"
58
59 // Windows resource file stuff
60 #define winxpdfVersion "WinXpdf 3.00"
61 #define xpdfCopyrightAmp "Copyright 1996-2004 Glyph && Cog, LLC"
62
63 //------------------------------------------------------------------------
64 // paper size
65 //------------------------------------------------------------------------
66
67 // default paper size (in points) for PostScript output
68 #ifdef A4_PAPER
69 #define defPaperWidth 595 // ISO A4 (210x297 mm)
70 #define defPaperHeight 842
71 #else
72 #define defPaperWidth 612 // American letter (8.5x11")
73 #define defPaperHeight 792
74 #endif
75
76 //------------------------------------------------------------------------
77 // config file (xpdfrc) path
78 //------------------------------------------------------------------------
79
80 // user config file name, relative to the user's home directory
81 #if defined(VMS) || (defined(WIN32) && !defined(__CYGWIN32__))
82 #define xpdfUserConfigFile "xpdfrc"
83 #else
84 #define xpdfUserConfigFile ".xpdfrc"
85 #endif
86
87 // system config file name (set via the configure script)
88 #ifdef SYSTEM_XPDFRC
89 #define xpdfSysConfigFile SYSTEM_XPDFRC
90 #else
91 // under Windows, we get the directory with the executable and then
92 // append this file name
93 #define xpdfSysConfigFile "xpdfrc"
94 #endif
95
96 //------------------------------------------------------------------------
97 // X-related constants
98 //------------------------------------------------------------------------
99
100 // default maximum size of color cube to allocate
101 #define defaultRGBCube 5
102
103 // number of fonts (combined t1lib, FreeType, X server) to cache
104 #define xOutFontCacheSize 64
105
106 // number of Type 3 fonts to cache
107 #define xOutT3FontCacheSize 8
108
109 //------------------------------------------------------------------------
110 // popen
111 //------------------------------------------------------------------------
112
113 #if defined(_MSC_VER) || defined(__BORLANDC__)
114 #define popen _popen
115 #define pclose _pclose
116 #endif
117
118 #if defined(VMS) || defined(VMCMS) || defined(DOS) || defined(OS2) || defined(__EMX__) || defined(WIN32) || defined(__DJGPP__) || defined(MACOS)
119 #define POPEN_READ_MODE "rb"
120 #else
121 #define POPEN_READ_MODE "r"
122 #endif
123
124 //------------------------------------------------------------------------
125 // Win32 stuff
126 //------------------------------------------------------------------------
127
128 #ifdef CDECL
129 #undef CDECL
130 #endif
131
132 #if defined(_MSC_VER) || defined(__BORLANDC__)
133 #define CDECL __cdecl
134 #else
135 #define CDECL
136 #endif
137
138 //------------------------------------------------------------------------
139 // Compiler
140 //------------------------------------------------------------------------
141
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)))
145 #else
146 #define GCC_PRINTF_FORMAT(fmt_index, va_index)
147 #endif
148
149
150 #endif /* POPPLER_CONFIG_H */