summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2012-08-01 14:48:19 +0100
committerRobin Watts <robin.watts@artifex.com>2012-08-01 14:48:19 +0100
commit4d36e9613da5190aba2c0c6c8281e5d35cf9758c (patch)
tree2021d358c2d63f74f731ab6e286d2433d58a32d9
parent627d7b9addea9ebc3c9d455db9e8cba959d51282 (diff)
downloadmupdf-4d36e9613da5190aba2c0c6c8281e5d35cf9758c.tar.xz
Enable pdf_print_xref in release builds; required for pdfshow.
Previously this had been disabled other than in DEBUG builds under the belief that it was only used for debugging.
-rw-r--r--pdf/mupdf-internal.h2
-rw-r--r--pdf/pdf_xref.c2
2 files changed, 0 insertions, 4 deletions
diff --git a/pdf/mupdf-internal.h b/pdf/mupdf-internal.h
index be7e23a2..2d5f5d97 100644
--- a/pdf/mupdf-internal.h
+++ b/pdf/mupdf-internal.h
@@ -225,9 +225,7 @@ void pdf_repair_obj_stms(pdf_document *doc);
void pdf_resize_xref(pdf_document *doc, int newcap);
pdf_obj *pdf_new_ref(pdf_document *doc, pdf_obj *obj);
-#ifndef NDEBUG
void pdf_print_xref(pdf_document *);
-#endif
/*
* Encryption
diff --git a/pdf/pdf_xref.c b/pdf/pdf_xref.c
index 9263eaaf..6a7585bd 100644
--- a/pdf/pdf_xref.c
+++ b/pdf/pdf_xref.c
@@ -859,7 +859,6 @@ pdf_close_document(pdf_document *xref)
fz_free(ctx, xref);
}
-#ifndef NDEBUG
void
pdf_print_xref(pdf_document *xref)
{
@@ -875,7 +874,6 @@ pdf_print_xref(pdf_document *xref)
xref->table[i].stm_buf);
}
}
-#endif
/*
* compressed object streams