source: trunk/poppler/mypoppler/poppler/poppler-config.h @ 2

Last change on this file since 2 was 2, checked in by Eugene Romanenko, 15 years ago

First import

File size: 4.5 KB
Line 
1/* poppler/poppler-config.h.  Generated by configure.  */
2//================================================= -*- mode: c++ -*- ====
3//
4// poppler-config.h
5//
6// Copyright 1996-2004 Glyph & Cog, LLC
7//
8//========================================================================
9
10#ifndef POPPLER_CONFIG_H
11#define POPPLER_CONFIG_H
12
13// We duplicate some of the config.h #define's here since they are
14// used in some of the header files we install.  The #ifndef/#endif
15// around #undef look odd, but it's to silence warnings about
16// redefining those symbols.
17
18/* Enable multithreading support. */
19#ifndef MULTITHREADING
20#define MULTITHREADED 0
21#endif
22
23/* Full path for the system-wide xpdfrc file. */
24#ifndef SYSTEM_XPDFRC
25#define SYSTEM_XPDFRC "/usr/etc/xpdfrc"
26#endif
27
28/* Include support for OPI comments. */
29#ifndef OPI_SUPPORT
30#define OPI_SUPPORT 1
31#endif
32
33/* Enable word list support. */
34#ifndef TEXTOUT_WORD_LIST
35#define TEXTOUT_WORD_LIST 1
36#endif
37
38// Also, there's a couple of preprocessor symbols in the header files
39// that are used but never defined: DISABLE_OUTLINE, DEBUG_MEM and
40
41//------------------------------------------------------------------------
42// version
43//------------------------------------------------------------------------
44
45// xpdf version
46#define xpdfVersion         "3.00"
47#define xpdfVersionNum      3.00
48#define xpdfMajorVersion    3
49#define xpdfMinorVersion    0
50#define xpdfMajorVersionStr "3"
51#define xpdfMinorVersionStr "0"
52
53// supported PDF version
54#define supportedPDFVersionStr "1.5"
55#define supportedPDFVersionNum 1.5
56
57// copyright notice
58#define xpdfCopyright "Copyright 1996-2004 Glyph & Cog, LLC"
59
60// Windows resource file stuff
61#define winxpdfVersion "WinXpdf 3.00"
62#define xpdfCopyrightAmp "Copyright 1996-2004 Glyph && Cog, LLC"
63
64//------------------------------------------------------------------------
65// paper size
66//------------------------------------------------------------------------
67
68// default paper size (in points) for PostScript output
69#ifdef A4_PAPER
70#define defPaperWidth  595    // ISO A4 (210x297 mm)
71#define defPaperHeight 842
72#else
73#define defPaperWidth  612    // American letter (8.5x11")
74#define defPaperHeight 792
75#endif
76
77//------------------------------------------------------------------------
78// config file (xpdfrc) path
79//------------------------------------------------------------------------
80
81// user config file name, relative to the user's home directory
82#if defined(VMS) || (defined(WIN32) && !defined(__CYGWIN32__))
83#define xpdfUserConfigFile "xpdfrc"
84#else
85#define xpdfUserConfigFile ".xpdfrc"
86#endif
87
88// system config file name (set via the configure script)
89#ifdef SYSTEM_XPDFRC
90#define xpdfSysConfigFile SYSTEM_XPDFRC
91#else
92// under Windows, we get the directory with the executable and then
93// append this file name
94#define xpdfSysConfigFile "xpdfrc"
95#endif
96
97//------------------------------------------------------------------------
98// X-related constants
99//------------------------------------------------------------------------
100
101// default maximum size of color cube to allocate
102#define defaultRGBCube 5
103
104// number of fonts (combined t1lib, FreeType, X server) to cache
105#define xOutFontCacheSize 64
106
107// number of Type 3 fonts to cache
108#define xOutT3FontCacheSize 8
109
110//------------------------------------------------------------------------
111// popen
112//------------------------------------------------------------------------
113
114#if defined(_MSC_VER) || defined(__BORLANDC__)
115#define popen _popen
116#define pclose _pclose
117#endif
118
119#if defined(VMS) || defined(VMCMS) || defined(DOS) || defined(OS2) || defined(__EMX__) || defined(WIN32) || defined(__DJGPP__) || defined(MACOS)
120#define POPEN_READ_MODE "rb"
121#else
122#define POPEN_READ_MODE "r"
123#endif
124
125//------------------------------------------------------------------------
126// Win32 stuff
127//------------------------------------------------------------------------
128
129#ifdef CDECL
130/* #undef CDECL */
131#endif
132
133#if defined(_MSC_VER) || defined(__BORLANDC__)
134#define CDECL __cdecl
135#else
136#define CDECL
137#endif
138
139//------------------------------------------------------------------------
140// Compiler
141//------------------------------------------------------------------------
142
143#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)
144#define GCC_PRINTF_FORMAT(fmt_index, va_index) \
145        __attribute__((__format__(__printf__, fmt_index, va_index)))
146#else
147#define GCC_PRINTF_FORMAT(fmt_index, va_index)
148#endif
149
150
151#endif /* POPPLER_CONFIG_H */
Note: See TracBrowser for help on using the repository browser.