diff options
Diffstat (limited to 'glib/poppler-features.h.in')
-rw-r--r-- | glib/poppler-features.h.in | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/glib/poppler-features.h.in b/glib/poppler-features.h.in index 7b72569c..99c7ed8e 100644 --- a/glib/poppler-features.h.in +++ b/glib/poppler-features.h.in @@ -22,4 +22,13 @@ @CAIRO_FEATURE@ @GDK_FEATURE@ +#define POPPLER_MAJOR_VERSION (@POPPLER_MAJOR_VERSION@) +#define POPPLER_MINOR_VERSION (@POPPLER_MINOR_VERSION@) +#define POPPLER_MICRO_VERSION (@POPPLER_MICRO_VERSION@) + +#define POPPLER_CHECK_VERSION(major,minor,micro) \ + (POPPLER_MAJOR_VERSION > (major) || \ + (POPPLER_MAJOR_VERSION == (major) && POPPLER_MINOR_VERSION > (minor)) || \ + (POPPLER_MAJOR_VERSION == (major) && POPPLER_MINOR_VERSION == (minor) && POPPLER_MICRO_VERSION >= (micro))) + #endif /* __POPPLER_FEATURES_H__ */ |