Continue fixing compilation on old versions of the horrible poppler library.
[GB.PDF] * BUG: Continue fixing compilation on old versions of the horrible poppler library.
This commit is contained in:
parent
f87cd1025b
commit
64f20f041f
2 changed files with 6 additions and 4 deletions
|
@ -128,7 +128,7 @@ static void aux_return_string_info(void *_object, const char *key)
|
|||
{
|
||||
Object obj;
|
||||
Object dst;
|
||||
const GooString *goo_value;
|
||||
const_GooString *goo_value;
|
||||
Dict *info_dict;
|
||||
char *tmpstr;
|
||||
|
||||
|
@ -170,7 +170,7 @@ static void aux_return_date_info(void *_object, const char *key)
|
|||
GB_DATE ret;
|
||||
Object obj;
|
||||
Object dst;
|
||||
const GooString *goo;
|
||||
const_GooString *goo;
|
||||
Dict *info_dict;
|
||||
char *datestr=NULL,*tofree=NULL;
|
||||
int nnum;
|
||||
|
@ -239,7 +239,7 @@ static uint32_t aux_get_page_from_action(void *_object, const_LinkAction *act)
|
|||
Ref pref;
|
||||
const_LinkDest *dest = get_dest(act);
|
||||
#if POPPLER_VERSION_0_6
|
||||
const GooString *name;
|
||||
const_GooString *name;
|
||||
#else
|
||||
UGooString *name;
|
||||
#endif
|
||||
|
@ -302,7 +302,7 @@ static char* aux_get_target_from_action(const_LinkAction *act)
|
|||
{
|
||||
char *vl=NULL;
|
||||
char *uni=NULL;
|
||||
const GooString *tmp=NULL;
|
||||
const_GooString *tmp=NULL;
|
||||
|
||||
switch (act->getKind())
|
||||
{
|
||||
|
|
|
@ -36,10 +36,12 @@
|
|||
#define const_LinkAction const LinkAction
|
||||
#define const_LinkDest const LinkDest
|
||||
#define const_GooList const GooList
|
||||
#define const_GooString const GooString
|
||||
#else
|
||||
#define const_LinkAction LinkAction
|
||||
#define const_LinkDest LinkDest
|
||||
#define const_GooList GooList
|
||||
#define const_GooString GooString
|
||||
#endif
|
||||
|
||||
#ifndef __CPDFDOCUMENT_C
|
||||
|
|
Loading…
Reference in a new issue