~naesten/tex-live/trunk

« back to all changes in this revision

Viewing changes to libs/poppler/poppler-src/poppler/poppler-config.h.cmake

  • Committer: karl
  • Date: 2018-01-09 18:53:05 UTC
  • Revision ID: svn-v4:c570f23f-e606-0410-a88d-b1316a301751:trunk/Build/source:46257
poppler 0.62.0, requiring C++11; luatex not updated yet

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
// Copyright (C) 2014 Bogdan Cristea <cristeab@gmail.com>
17
17
// Copyright (C) 2014 Hib Eris <hib@hiberis.nl>
18
18
// Copyright (C) 2016 Tor Lillqvist <tml@collabora.com>
 
19
// Copyright (C) 2017 Adrian Johnson <ajohnson@redneon.com>
19
20
//
20
21
// To see a description of the changes please see the Changelog file that
21
22
// came with your tarball or type make ChangeLog if you are building from git
25
26
#ifndef POPPLER_CONFIG_H
26
27
#define POPPLER_CONFIG_H
27
28
 
28
 
#include <stdio.h>
29
 
 
30
29
// We duplicate some of the config.h #define's here since they are
31
30
// used in some of the header files we install.  The #ifndef/#endif
32
31
// around #undef look odd, but it's to silence warnings about
115
114
#cmakedefine HAVE_SYS_NDIR_H 1
116
115
#endif
117
116
 
118
 
/* Have FreeType2 include files */
119
 
#ifndef HAVE_FREETYPE_H
120
 
#cmakedefine HAVE_FREETYPE_H 1
121
 
#endif
122
 
 
123
117
/* Defines if use cms */
124
118
#ifndef USE_CMS
125
119
#cmakedefine USE_CMS 1
127
121
 
128
122
// Also, there are preprocessor symbols in the header files
129
123
// that are used but never defined when building poppler using configure
130
 
// or cmake: DISABLE_OUTLINE, DEBUG_MEM, SPLASH_CMYK, HAVE_T1LIB_H,
131
 
// ENABLE_PLUGINS, DEBUG_FORMS, HAVE_FREETYPE_FREETYPE_H
 
124
// or cmake: DISABLE_OUTLINE, DEBUG_MEM,
 
125
// ENABLE_PLUGINS, DEBUG_FORMS
132
126
 
133
127
//------------------------------------------------------------------------
134
128
// version
139
133
#define xpdfCopyright "Copyright 1996-2011 Glyph & Cog, LLC"
140
134
 
141
135
//------------------------------------------------------------------------
142
 
// popen
143
 
//------------------------------------------------------------------------
144
 
 
145
 
#if defined(_MSC_VER) || defined(__BORLANDC__)
146
 
#define popen _popen
147
 
#define pclose _pclose
148
 
#endif
149
 
 
150
 
#if defined(VMS) || defined(VMCMS) || defined(DOS) || defined(OS2) || defined(__EMX__) || defined(_WIN32) || defined(__DJGPP__) || defined(MACOS)
151
 
#define POPEN_READ_MODE "rb"
152
 
#else
153
 
#define POPEN_READ_MODE "r"
154
 
#endif
155
 
 
156
 
//------------------------------------------------------------------------
157
136
// Win32 stuff
158
137
//------------------------------------------------------------------------
159
138
 
163
142
#define CDECL
164
143
#endif
165
144
 
166
 
#if defined(_WIN32)
167
 
#ifdef _MSC_VER
168
 
#define strtok_r strtok_s
169
 
#elif __MINGW32__ && !defined(__WINPTHREADS_VERSION)
170
 
char * strtok_r (char *s, const char *delim, char **save_ptr);
171
 
#endif
172
 
#endif
173
 
 
174
145
//------------------------------------------------------------------------
175
146
// Compiler
176
147
//------------------------------------------------------------------------
177
148
 
178
149
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)
 
150
#include <stdio.h> // __MINGW_PRINTF_FORMAT is defined in the mingw stdio.h
179
151
#ifdef __MINGW_PRINTF_FORMAT
180
152
#define GCC_PRINTF_FORMAT(fmt_index, va_index) \
181
153
        __attribute__((__format__(__MINGW_PRINTF_FORMAT, fmt_index, va_index)))
187
159
#define GCC_PRINTF_FORMAT(fmt_index, va_index)
188
160
#endif
189
161
 
190
 
#if defined(_MSC_VER) && _MSC_VER < 1800
191
 
#define fmax(a, b) std::max(a, b)
192
 
#define fmin(a, b) std::min(a, b)
193
 
#endif
194
 
 
195
 
 
196
162
#endif /* POPPLER_CONFIG_H */