From e74df981077189c6408be4cdfb1f9dc4738e4ed0 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 30 May 2016 14:29:08 +0200 Subject: Respect FZ_ENABLE_PDF=0 to allow dropping all PDF specific code in tools. --- source/fitz/writer.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/fitz/writer.c') diff --git a/source/fitz/writer.c b/source/fitz/writer.c index 94f601b5..2a344e52 100644 --- a/source/fitz/writer.c +++ b/source/fitz/writer.c @@ -54,8 +54,10 @@ fz_new_document_writer(fz_context *ctx, const char *path, const char *format, co if (!fz_strcasecmp(format, "cbz")) return fz_new_cbz_writer(ctx, path, options); +#if FZ_ENABLE_PDF if (!fz_strcasecmp(format, "pdf")) return fz_new_pdf_writer(ctx, path, options); +#endif fz_throw(ctx, FZ_ERROR_GENERIC, "unknown document format: %s", format); } -- cgit v1.2.3