summaryrefslogtreecommitdiff
path: root/source/fitz/output-svg.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2017-04-28 10:38:19 +0200
committerTor Andersson <tor.andersson@artifex.com>2017-05-04 15:38:00 +0200
commitd3baef213f5fba0c6869a6599c16c88e9c47925a (patch)
treefa7ef38c1563c86e5af7aca595a32247a498bb9f /source/fitz/output-svg.c
parentb18c1ec68392979fd12483a5d68acca4e1c42221 (diff)
downloadmupdf-d3baef213f5fba0c6869a6599c16c88e9c47925a.tar.xz
Drop FZ_PATH_MAX macro.
Define PATH_MAX in the few files that use it, should it be missing.
Diffstat (limited to 'source/fitz/output-svg.c')
-rw-r--r--source/fitz/output-svg.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/fitz/output-svg.c b/source/fitz/output-svg.c
index a0ea0299..20d57c17 100644
--- a/source/fitz/output-svg.c
+++ b/source/fitz/output-svg.c
@@ -1,5 +1,9 @@
#include "mupdf/fitz.h"
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
typedef struct fz_svg_writer_s fz_svg_writer;
struct fz_svg_writer_s
@@ -24,7 +28,7 @@ static fz_device *
svg_begin_page(fz_context *ctx, fz_document_writer *wri_, const fz_rect *mediabox)
{
fz_svg_writer *wri = (fz_svg_writer*)wri_;
- char path[FZ_PATH_MAX];
+ char path[PATH_MAX];
float w = mediabox->x1 - mediabox->x0;
float h = mediabox->y1 - mediabox->y0;