Subversion Repositories Scribus

Rev

Rev 22798 | Rev 23289 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
22514 jghali 1
/*
2
For general Scribus (>=1.3.2) copyright and licensing information please refer
3
to the COPYING file provided with the program. Following this notice may exist
4
a copyright and/or license notice that predates the release of Scribus 1.3.2
5
for which a new license (GPL+exception) is in place.
6
*/
7
#ifndef IMPORTPDFCONFIG_H
8
#define IMPORTPDFCONFIG_H
9
 
10
#include <poppler/cpp/poppler-version.h>
11
 
12
#define POPPLER_VERSION_ENCODE(major, minor, micro) (   \
13
          ((major) * 10000)                             \
14
        + ((minor) *   100)                             \
15
        + ((micro) *     1))
16
#define POPPLER_ENCODED_VERSION POPPLER_VERSION_ENCODE(POPPLER_VERSION_MAJOR, POPPLER_VERSION_MINOR, POPPLER_VERSION_MICRO)
17
 
18
#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(0, 64, 0)
19
#define POPPLER_CONST const
20
#else
21
#define POPPLER_CONST
22
#endif
23
 
22741 jghali 24
#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(0, 70, 0)
25
#define POPPLER_CONST_070 const
26
#else
27
#define POPPLER_CONST_070
22514 jghali 28
#endif
22741 jghali 29
 
22745 jghali 30
#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(0, 71, 0)
22795 jghali 31
#define GBool  bool
32
#define gTrue  true
22745 jghali 33
#define gFalse false
22741 jghali 34
#endif
22745 jghali 35
 
22795 jghali 36
#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(0, 72, 0)
37
#define getCString  c_str
22745 jghali 38
#endif
22795 jghali 39
 
22798 jghali 40
#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(0, 73, 0)
41
#define Guchar  unsigned char
42
#define Gushort unsigned short
43
#define Guint   unsigned int
44
#define Gulong  unsigned long
22795 jghali 45
#endif
22798 jghali 46
 
22906 jghali 47
#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(0, 75, 0)
48
#define POPPLER_CONST_075 const
49
#define POPPLER_REF &
50
#else
51
#define POPPLER_CONST_075
52
#define POPPLER_REF
22798 jghali 53
#endif
22906 jghali 54
 
55
#endif