Kaydet (Commit) 38368be8 authored tarafından Dominique Leuenberger's avatar Dominique Leuenberger Kaydeden (comit) Michael Stahl

Allow building with poppler-0.62

Change-Id: Ia627f1628a67dd8ece7d9318639d9ccd06b89765
Reviewed-on: https://gerrit.libreoffice.org/47460Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst f39fd98e
...@@ -32,10 +32,12 @@ ...@@ -32,10 +32,12 @@
#pragma warning(push, 1) #pragma warning(push, 1)
#endif #endif
// sigh, UTF8.h was removed in poppler-0.21.0 and put back in 0.21.1 // sigh, UTF8.h was removed in poppler-0.21.0 and put back in 0.21.1, then renamed to UnicodeMapFuncs.h in 0.62.0
// FIXME: we can't use #if POPPLER_CHECK_VERSION(0, 21, 0) && !POPPLER_CHECK_VERSION(0, 21, 1) // FIXME: we can't use #if POPPLER_CHECK_VERSION(0, 21, 0) && !POPPLER_CHECK_VERSION(0, 21, 1)
// because the internal poppler does not provide poppler-version.h and the macro always returns 0 // because the internal poppler does not provide poppler-version.h and the macro always returns 0
#if POPPLER_CHECK_VERSION(0, 21, 1) #if POPPLER_CHECK_VERSION(0, 62, 0)
#include <UnicodeMapFuncs.h>
#elif POPPLER_CHECK_VERSION(0, 21, 1)
#include <UTF8.h> #include <UTF8.h>
#elif POPPLER_CHECK_VERSION(0, 21, 0) #elif POPPLER_CHECK_VERSION(0, 21, 0)
#include "UTF.h" #include "UTF.h"
...@@ -913,7 +915,11 @@ void PDFOutDev::drawChar(GfxState *state, double x, double y, ...@@ -913,7 +915,11 @@ void PDFOutDev::drawChar(GfxState *state, double x, double y,
); );
// silence spurious warning // silence spurious warning
#if POPPLER_CHECK_VERSION(0, 62, 0)
(void)&mapUTF16;
#else
(void)&mapUCS2; (void)&mapUCS2;
#endif
char buf[9]; char buf[9];
for( int i=0; i<uLen; ++i ) for( int i=0; i<uLen; ++i )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment