~ubuntu-branches/ubuntu/vivid/emscripten/vivid

« back to all changes in this revision

Viewing changes to tests/poppler/poppler/poppler-config.h.cmake

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-05-02 13:11:51 UTC
  • Revision ID: package-import@ubuntu.com-20130502131151-q8dvteqr1ef2x7xz
Tags: upstream-1.4.1~20130504~adb56cb
ImportĀ upstreamĀ versionĀ 1.4.1~20130504~adb56cb

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//================================================= -*- mode: c++ -*- ====
 
2
//
 
3
// poppler-config.h
 
4
//
 
5
// Copyright 1996-2004 Glyph & Cog, LLC
 
6
//
 
7
//========================================================================
 
8
 
 
9
#ifndef POPPLER_CONFIG_H
 
10
#define POPPLER_CONFIG_H
 
11
 
 
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.
 
16
 
 
17
/* Enable multithreading support. */
 
18
#ifndef MULTITHREADED
 
19
#cmakedefine MULTITHREADED 1
 
20
#endif
 
21
 
 
22
/* Use fixedpoint. */
 
23
#ifndef USE_FIXEDPOINT
 
24
#cmakedefine USE_FIXEDPOINT 1
 
25
#endif
 
26
 
 
27
/* Include support for OPI comments. */
 
28
#ifndef OPI_SUPPORT
 
29
#cmakedefine OPI_SUPPORT 1
 
30
#endif
 
31
 
 
32
/* Enable word list support. */
 
33
#ifndef TEXTOUT_WORD_LIST
 
34
#cmakedefine TEXTOUT_WORD_LIST 1
 
35
#endif
 
36
 
 
37
/* Use fontconfig font configuration backend */
 
38
#ifndef WITH_FONTCONFIGURATION_FONTCONFIG
 
39
#cmakedefine WITH_FONTCONFIGURATION_FONTCONFIG 1
 
40
#endif
 
41
 
 
42
/* Use win32 font configuration backend */
 
43
#ifndef WITH_FONTCONFIGURATION_WIN32
 
44
#cmakedefine WITH_FONTCONFIGURATION_WIN32 1
 
45
#endif
 
46
 
 
47
/* Support for curl is compiled in. */
 
48
#ifndef POPPLER_HAS_CURL_SUPPORT
 
49
#cmakedefine POPPLER_HAS_CURL_SUPPORT 1
 
50
#endif
 
51
 
 
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
 
54
 
 
55
//------------------------------------------------------------------------
 
56
// version
 
57
//------------------------------------------------------------------------
 
58
 
 
59
// copyright notice
 
60
#define popplerCopyright "Copyright 2005-2010 The Poppler Developers - http://poppler.freedesktop.org"
 
61
#define xpdfCopyright "Copyright 1996-2004 Glyph & Cog, LLC"
 
62
 
 
63
//------------------------------------------------------------------------
 
64
// popen
 
65
//------------------------------------------------------------------------
 
66
 
 
67
#if defined(_MSC_VER) || defined(__BORLANDC__)
 
68
#define popen _popen
 
69
#define pclose _pclose
 
70
#endif
 
71
 
 
72
#if defined(VMS) || defined(VMCMS) || defined(DOS) || defined(OS2) || defined(__EMX__) || defined(_WIN32) || defined(__DJGPP__) || defined(MACOS)
 
73
#define POPEN_READ_MODE "rb"
 
74
#else
 
75
#define POPEN_READ_MODE "r"
 
76
#endif
 
77
 
 
78
//------------------------------------------------------------------------
 
79
// Win32 stuff
 
80
//------------------------------------------------------------------------
 
81
 
 
82
#if defined(_WIN32) && !defined(_MSC_VER)
 
83
#include <windef.h>
 
84
#else
 
85
#define CDECL
 
86
#endif
 
87
 
 
88
#if defined(_WIN32)
 
89
#ifdef _MSC_VER
 
90
#define strtok_r strtok_s
 
91
#elif __MINGW32__
 
92
char * strtok_r (char *s, const char *delim, char **save_ptr);
 
93
#endif
 
94
#endif
 
95
 
 
96
//------------------------------------------------------------------------
 
97
// Compiler
 
98
//------------------------------------------------------------------------
 
99
 
 
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)))
 
103
#else
 
104
#define GCC_PRINTF_FORMAT(fmt_index, va_index)
 
105
#endif
 
106
 
 
107
#if defined(_MSC_VER)
 
108
#define fmax(a, b) max(a, b)
 
109
#define fmin(a, b) min(a, b)
 
110
#endif
 
111
 
 
112
 
 
113
#endif /* POPPLER_CONFIG_H */