poppler: add new axial and radialShadedFill parameters
[swftools.git] / lib / pdf / popplercompat.h
1 #ifndef __popplercompat_h__
2 #define __popplercompat_h__
3
4 #include "../../config.h"
5
6 #ifdef HAVE_POPPLER
7   #define POPPLER_INTERPOLATE GBool interpolate,
8   #define POPPLER_INTERPOLATE_ARG interpolate,
9   #define POPPLER_MASK_INTERPOLATE , GBool maskInterpolate
10   #define POPPLER_MASK_INTERPOLATE_ARG , maskInterpolate
11 #else
12   #define POPPLER_INTERPOLATE
13   #define POPPLER_INTERPOLATE_ARG
14   #define POPPLER_MASK_INTERPOLATE
15   #define POPPLER_MASK_INTERPOLATE_ARG
16 #endif
17
18 #ifdef HAVE_POPPLER
19   #define POPPLER_TILING_PATERN_RETURN GBool
20   #define POPPLER_TILING_PATERN_GFX
21   #define POPPLER_TILING_PATERN_GFX_ARG
22 #else
23   #define POPPLER_TILING_PATERN_RETURN void
24   #if (xpdfMajorVersion*10000 + xpdfMinorVersion*100 + xpdfUpdateVersion) < 30207
25     #define POPPLER_TILING_PATERN_GFX
26     #define POPPLER_TILING_PATERN_GFX_ARG
27   #else
28     #define POPPLER_TILING_PATERN_GFX Gfx *gfx,
29     #define POPPLER_TILING_PATERN_GFX_ARG gfx,
30   #endif
31 #endif
32
33 #ifdef HAVE_POPPLER
34 char* mktmpname(char*ptr);
35 #endif
36
37 #ifdef HAVE_POPPLER
38   #define POPPLER_RAXIAL_MIN_MAX , double min, double max
39   #define POPPLER_RAXIAL_MIN_MAX_ARG , min, max
40 #else
41   #define POPPLER_RAXIAL_MIN_MAX
42   #define POPPLER_RAXIAL_MIN_MAX_ARG
43 #endif
44
45 #endif