]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | //======================================================================== |
2 | // | |
3 | // config.h | |
4 | // | |
5 | // Copyright 1996-2005 Glyph & Cog, LLC | |
6 | // | |
7 | //======================================================================== | |
8 | ||
9 | #ifndef CONFIG_H | |
10 | #define CONFIG_H | |
11 | ||
12 | //------------------------------------------------------------------------ | |
13 | // version | |
14 | //------------------------------------------------------------------------ | |
15 | ||
16 | // xpdf version | |
17 | #define xpdfVersion "3.01" | |
18 | #define xpdfVersionNum 3.01 | |
19 | #define xpdfMajorVersion 3 | |
20 | #define xpdfMinorVersion 1 | |
21 | #define xpdfUpdateVersion 0 | |
22 | #define xpdfMajorVersionStr "3" | |
23 | #define xpdfMinorVersionStr "1" | |
24 | #define xpdfUpdateVersionStr "0" | |
25 | ||
26 | // supported PDF version | |
27 | #define supportedPDFVersionStr "1.5" | |
28 | #define supportedPDFVersionNum 1.5 | |
29 | ||
30 | // copyright notice | |
31 | #define xpdfCopyright "Copyright 1996-2005 Glyph & Cog, LLC" | |
32 | ||
33 | // Windows resource file stuff | |
34 | #define winxpdfVersion "WinXpdf 3.01" | |
35 | #define xpdfCopyrightAmp "Copyright 1996-2005 Glyph && Cog, LLC" | |
36 | ||
37 | //------------------------------------------------------------------------ | |
38 | // paper size | |
39 | //------------------------------------------------------------------------ | |
40 | ||
41 | // default paper size (in points) for PostScript output | |
42 | #ifdef A4_PAPER | |
43 | #define defPaperWidth 595 // ISO A4 (210x297 mm) | |
44 | #define defPaperHeight 842 | |
45 | #else | |
46 | #define defPaperWidth 612 // American letter (8.5x11") | |
47 | #define defPaperHeight 792 | |
48 | #endif | |
49 | ||
50 | //------------------------------------------------------------------------ | |
51 | // config file (xpdfrc) path | |
52 | //------------------------------------------------------------------------ | |
53 | ||
54 | // user config file name, relative to the user's home directory | |
55 | #if defined(VMS) || (defined(WIN32) && !defined(__CYGWIN32__)) | |
56 | #define xpdfUserConfigFile "xpdfrc" | |
57 | #else | |
58 | #define xpdfUserConfigFile ".xpdfrc" | |
59 | #endif | |
60 | ||
61 | // system config file name (set via the configure script) | |
62 | #ifdef SYSTEM_XPDFRC | |
63 | #define xpdfSysConfigFile SYSTEM_XPDFRC | |
64 | #else | |
65 | // under Windows, we get the directory with the executable and then | |
66 | // append this file name | |
67 | #define xpdfSysConfigFile "xpdfrc" | |
68 | #endif | |
69 | ||
70 | //------------------------------------------------------------------------ | |
71 | // X-related constants | |
72 | //------------------------------------------------------------------------ | |
73 | ||
74 | // default maximum size of color cube to allocate | |
75 | #define defaultRGBCube 5 | |
76 | ||
77 | // number of fonts (combined t1lib, FreeType, X server) to cache | |
78 | #define xOutFontCacheSize 64 | |
79 | ||
80 | // number of Type 3 fonts to cache | |
81 | #define xOutT3FontCacheSize 8 | |
82 | ||
83 | //------------------------------------------------------------------------ | |
84 | // popen | |
85 | //------------------------------------------------------------------------ | |
86 | ||
87 | #if defined(_MSC_VER) || defined(__BORLANDC__) | |
88 | #define popen _popen | |
89 | #define pclose _pclose | |
90 | #endif | |
91 | ||
92 | #if defined(VMS) || defined(VMCMS) || defined(DOS) || defined(OS2) || defined(__EMX__) || defined(WIN32) || defined(__DJGPP__) || defined(MACOS) | |
93 | #define POPEN_READ_MODE "rb" | |
94 | #else | |
95 | #define POPEN_READ_MODE "r" | |
96 | #endif | |
97 | ||
98 | //------------------------------------------------------------------------ | |
99 | // Win32 stuff | |
100 | //------------------------------------------------------------------------ | |
101 | ||
102 | #ifdef CDECL | |
103 | #undef CDECL | |
104 | #endif | |
105 | ||
106 | #if defined(_MSC_VER) || defined(__BORLANDC__) | |
107 | #define CDECL __cdecl | |
108 | #else | |
109 | #define CDECL | |
110 | #endif | |
111 | ||
112 | #endif |