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
23
#ifndef USE_FIXEDPOINT
24
#cmakedefine USE_FIXEDPOINT 1
27
/* Include support for OPI comments. */
29
#cmakedefine OPI_SUPPORT 1
32
/* Enable word list support. */
33
#ifndef TEXTOUT_WORD_LIST
34
#cmakedefine TEXTOUT_WORD_LIST 1
37
/* Use fontconfig font configuration backend */
38
#ifndef WITH_FONTCONFIGURATION_FONTCONFIG
39
#cmakedefine WITH_FONTCONFIGURATION_FONTCONFIG 1
42
/* Use win32 font configuration backend */
43
#ifndef WITH_FONTCONFIGURATION_WIN32
44
#cmakedefine WITH_FONTCONFIGURATION_WIN32 1
47
/* Support for curl is compiled in. */
48
#ifndef POPPLER_HAS_CURL_SUPPORT
49
#cmakedefine POPPLER_HAS_CURL_SUPPORT 1
52
// Also, there's a couple of preprocessor symbols in the header files
53
// that are used but never defined: DISABLE_OUTLINE, DEBUG_MEM and
55
//------------------------------------------------------------------------
57
//------------------------------------------------------------------------
60
#define popplerCopyright "Copyright 2005-2010 The Poppler Developers - http://poppler.freedesktop.org"
61
#define xpdfCopyright "Copyright 1996-2004 Glyph & Cog, LLC"
63
//------------------------------------------------------------------------
65
//------------------------------------------------------------------------
67
#if defined(_MSC_VER) || defined(__BORLANDC__)
69
#define pclose _pclose
72
#if defined(VMS) || defined(VMCMS) || defined(DOS) || defined(OS2) || defined(__EMX__) || defined(_WIN32) || defined(__DJGPP__) || defined(MACOS)
73
#define POPEN_READ_MODE "rb"
75
#define POPEN_READ_MODE "r"
78
//------------------------------------------------------------------------
80
//------------------------------------------------------------------------
82
#if defined(_WIN32) && !defined(_MSC_VER)
90
#define strtok_r strtok_s
92
char * strtok_r (char *s, const char *delim, char **save_ptr);
96
//------------------------------------------------------------------------
98
//------------------------------------------------------------------------
100
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)
101
#define GCC_PRINTF_FORMAT(fmt_index, va_index) \
102
__attribute__((__format__(__printf__, fmt_index, va_index)))
104
#define GCC_PRINTF_FORMAT(fmt_index, va_index)
107
#if defined(_MSC_VER)
108
#define fmax(a, b) max(a, b)
109
#define fmin(a, b) min(a, b)
113
#endif /* POPPLER_CONFIG_H */