From 14f0dd1c64500c1cf12dcb47d14620afa3416d9f Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Thu, 20 Sep 2018 12:05:26 +0100 Subject: Be consistent in use of #if FZ_ENABLE_... Using #ifdef FZ_ENABLE_ means we build code in, even if we have defined FZ_ENABLE_WHATEVER to be 0 (as we do in config.h). --- source/fitz/document.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/fitz/document.c') diff --git a/source/fitz/document.c b/source/fitz/document.c index d234dc3b..594437b3 100644 --- a/source/fitz/document.c +++ b/source/fitz/document.c @@ -124,7 +124,7 @@ fz_recognize_document(fz_context *ctx, const char *magic) return dc->handler[best_i]; } -#ifdef FZ_ENABLE_PDF +#if FZ_ENABLE_PDF extern fz_document_handler pdf_document_handler; #endif @@ -138,7 +138,7 @@ fz_open_document_with_stream(fz_context *ctx, const char *magic, fz_stream *stre handler = fz_recognize_document(ctx, magic); if (!handler) -#ifdef FZ_ENABLE_PDF +#if FZ_ENABLE_PDF handler = &pdf_document_handler; #else fz_throw(ctx, FZ_ERROR_GENERIC, "cannot find document handler for file type: %s", magic); @@ -159,7 +159,7 @@ fz_open_document(fz_context *ctx, const char *filename) handler = fz_recognize_document(ctx, filename); if (!handler) -#ifdef FZ_ENABLE_PDF +#if FZ_ENABLE_PDF handler = &pdf_document_handler; #else fz_throw(ctx, FZ_ERROR_GENERIC, "cannot find document handler for file: %s", filename); -- cgit v1.2.3