fixed windows access violation which occurs if one tries to retrieve
[swftools.git] / pdf2swf / xpdf / config.h
blob39cb291840f3f374039acdff7fac7c2ea821ba6b
1 //========================================================================
2 //
3 // config.h
4 //
5 // Copyright 1996-2002 Glyph & Cog, LLC
6 //
7 //========================================================================
9 #ifndef CONFIG_H
10 #define CONFIG_H
12 //------------------------------------------------------------------------
13 // version
14 //------------------------------------------------------------------------
16 // xpdf version
18 #define xpdfVersion "1.01"
20 // supported PDF version
21 #define supportedPDFVersionStr "1.4"
22 #define supportedPDFVersionNum 1.4
24 // copyright notice
25 #define xpdfCopyright "Copyright 1996-2002 Glyph & Cog, LLC"
27 //------------------------------------------------------------------------
28 // paper size
29 //------------------------------------------------------------------------
31 // default paper size (in points) for PostScript output
32 #ifdef A4_PAPER
33 #define defPaperWidth 595 // ISO A4 (210x297 mm)
34 #define defPaperHeight 842
35 #else
36 #define defPaperWidth 612 // American letter (8.5x11")
37 #define defPaperHeight 792
38 #endif
40 //------------------------------------------------------------------------
41 // config file (xpdfrc) path
42 //------------------------------------------------------------------------
44 // user config file name, relative to the user's home directory
45 #if defined(VMS) || (defined(WIN32) && !defined(__CYGWIN32__))
46 #define xpdfUserConfigFile "xpdfrc"
47 #else
48 #define xpdfUserConfigFile ".xpdfrc"
49 #endif
51 // system config file name (set via the configure script)
52 #ifdef SYSTEM_XPDFRC
53 #define xpdfSysConfigFile SYSTEM_XPDFRC
54 #else
55 // under Windows, we get the directory with the executable and then
56 // append this file name
57 #define xpdfSysConfigFile "xpdfrc"
58 #endif
60 //------------------------------------------------------------------------
61 // X-related constants
62 //------------------------------------------------------------------------
64 // default maximum size of color cube to allocate
65 #define defaultRGBCube 5
67 // number of fonts (combined t1lib, FreeType, X server) to cache
68 #define xOutFontCacheSize 64
70 // number of Type 3 fonts to cache
71 #define xOutT3FontCacheSize 8
73 //------------------------------------------------------------------------
74 // popen
75 //------------------------------------------------------------------------
77 #ifdef _MSC_VER
78 #define popen _popen
79 #define pclose _pclose
80 #endif
82 #if defined(VMS) || defined(VMCMS) || defined(DOS) || defined(OS2) || defined(__EMX__) || defined(WIN32) || defined(__DJGPP__) || defined(__CYGWIN32__) || defined(MACOS)
83 #define POPEN_READ_MODE "rb"
84 #else
85 #define POPEN_READ_MODE "r"
86 #endif
88 //------------------------------------------------------------------------
89 // uncompress program
90 //------------------------------------------------------------------------
92 #ifdef HAVE_POPEN
94 // command to uncompress to stdout
95 # ifdef USE_GZIP
96 # define uncompressCmd "gzip -d -c -q"
97 # else
98 # ifdef __EMX__
99 # define uncompressCmd "compress -d -c"
100 # else
101 # define uncompressCmd "uncompress -c"
102 # endif // __EMX__
103 # endif // USE_GZIP
105 #else // HAVE_POPEN
107 // command to uncompress a file
108 # ifdef USE_GZIP
109 # define uncompressCmd "gzip -d -q"
110 # else
111 # define uncompressCmd "uncompress"
112 # endif // USE_GZIP
114 #endif // HAVE_POPEN
116 //------------------------------------------------------------------------
117 // Win32 stuff
118 //------------------------------------------------------------------------
120 #ifdef CDECL
121 #undef CDECL
122 #endif
124 #ifdef _MSC_VER
125 #define CDECL __cdecl
126 #else
127 #define CDECL
128 #endif
130 #endif