summaryrefslogtreecommitdiff
path: root/source/fitz/document.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/fitz/document.c')
-rw-r--r--source/fitz/document.c6
1 files changed, 3 insertions, 3 deletions
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);