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 24 #if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(0, 70, 0) 25 #define POPPLER_CONST_070 const 26 #else 27 #define POPPLER_CONST_070 28 #endif 29 30 #if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(0, 71, 0) 31 #define GBool bool 32 #define gTrue true 33 #define gFalse false 34 #endif 35 36 #if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(0, 72, 0) 37 #define getCString c_str 38 #endif 39 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 45 #endif 46 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 53 #endif 54 55 #if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(0, 82, 0) 56 #define POPPLER_CONST_082 const 57 #else 58 #define POPPLER_CONST_082 59 #endif 60 61 #if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(0, 83, 0) 62 #define POPPLER_CONST_083 const 63 #else 64 #define POPPLER_CONST_083 65 #endif 66 67 #endif 68