diff --git a/gb.pdf/configure.ac b/gb.pdf/configure.ac index fe87d6cd9..b7d888bb4 100644 --- a/gb.pdf/configure.ac +++ b/gb.pdf/configure.ac @@ -35,6 +35,8 @@ if test "$have_poppler" = "yes"; then AC_DEFINE_UNQUOTED(POPPLER_VERSION_0_64, $((1-$?)), Poppler version >= 0.64) pkg-config --atleast-version=0.71.0 poppler AC_DEFINE_UNQUOTED(POPPLER_VERSION_0_71, $((1-$?)), Poppler version >= 0.71) + pkg-config --atleast-version=0.72.0 poppler + AC_DEFINE_UNQUOTED(POPPLER_VERSION_0_72, $((1-$?)), Poppler version >= 0.72) fi AC_OUTPUT( \ diff --git a/gb.pdf/src/CPdfDocument.cpp b/gb.pdf/src/CPdfDocument.cpp index 64cc92796..3162f0deb 100644 --- a/gb.pdf/src/CPdfDocument.cpp +++ b/gb.pdf/src/CPdfDocument.cpp @@ -47,6 +47,9 @@ #include #include +#if POPPLER_VERSION_0_72 +#define getCString c_str +#endif /***************************************************************************/