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. */
19
#cmakedefine MULTITHREADED 1
22
/* Enable exceptions. */
23
#ifndef USE_EXCEPTIONS
24
#cmakedefine USE_EXCEPTIONS 1
28
#ifndef USE_FIXEDPOINT
29
#cmakedefine USE_FIXEDPOINT 1
32
/* Full path for the system-wide xpdfrc file. */
34
#cmakedefine SYSTEM_XPDFRC 1
37
/* Include support for OPI comments. */
39
#cmakedefine OPI_SUPPORT 1
42
/* Enable word list support. */
43
#ifndef TEXTOUT_WORD_LIST
44
#cmakedefine TEXTOUT_WORD_LIST 1
47
// Also, there's a couple of preprocessor symbols in the header files
48
// that are used but never defined: DISABLE_OUTLINE, DEBUG_MEM and
50
//------------------------------------------------------------------------
52
//------------------------------------------------------------------------
55
#define xpdfVersion "3.00"
56
#define xpdfVersionNum 3.00
57
#define xpdfMajorVersion 3
58
#define xpdfMinorVersion 0
59
#define xpdfMajorVersionStr "3"
60
#define xpdfMinorVersionStr "0"
62
// supported PDF version
63
#define supportedPDFVersionStr "1.5"
64
#define supportedPDFVersionNum 1.5
67
#define xpdfCopyright "Copyright 1996-2004 Glyph & Cog, LLC"
69
// Windows resource file stuff
70
#define winxpdfVersion "WinXpdf 3.00"
71
#define xpdfCopyrightAmp "Copyright 1996-2004 Glyph && Cog, LLC"
73
//------------------------------------------------------------------------
75
//------------------------------------------------------------------------
77
// default paper size (in points) for PostScript output
79
#define defPaperWidth 595 // ISO A4 (210x297 mm)
80
#define defPaperHeight 842
82
#define defPaperWidth 612 // American letter (8.5x11")
83
#define defPaperHeight 792
86
//------------------------------------------------------------------------
87
// config file (xpdfrc) path
88
//------------------------------------------------------------------------
90
// user config file name, relative to the user's home directory
91
#if defined(VMS) || (defined(WIN32) && !defined(__CYGWIN32__))
92
#define xpdfUserConfigFile "xpdfrc"
94
#define xpdfUserConfigFile ".xpdfrc"
97
// system config file name (set via the configure script)
99
#define xpdfSysConfigFile SYSTEM_XPDFRC
101
// under Windows, we get the directory with the executable and then
102
// append this file name
103
#define xpdfSysConfigFile "xpdfrc"
106
//------------------------------------------------------------------------
107
// X-related constants
108
//------------------------------------------------------------------------
110
// default maximum size of color cube to allocate
111
#define defaultRGBCube 5
113
// number of fonts (combined t1lib, FreeType, X server) to cache
114
#define xOutFontCacheSize 64
116
// number of Type 3 fonts to cache
117
#define xOutT3FontCacheSize 8
119
//------------------------------------------------------------------------
121
//------------------------------------------------------------------------
123
#if defined(_MSC_VER) || defined(__BORLANDC__)
125
#define pclose _pclose
128
#if defined(VMS) || defined(VMCMS) || defined(DOS) || defined(OS2) || defined(__EMX__) || defined(WIN32) || defined(__DJGPP__) || defined(MACOS)
129
#define POPEN_READ_MODE "rb"
131
#define POPEN_READ_MODE "r"
134
//------------------------------------------------------------------------
136
//------------------------------------------------------------------------
142
#if defined(_MSC_VER) || defined(__BORLANDC__)
143
#define CDECL __cdecl
148
//------------------------------------------------------------------------
150
//------------------------------------------------------------------------
152
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)
153
#define GCC_PRINTF_FORMAT(fmt_index, va_index) \
154
__attribute__((__format__(__printf__, fmt_index, va_index)))
156
#define GCC_PRINTF_FORMAT(fmt_index, va_index)
160
#endif /* POPPLER_CONFIG_H */