diff options
-rw-r--r-- | include/mupdf/fitz/system.h | 6 | ||||
-rw-r--r-- | platform/x11/win_main.c | 4 | ||||
-rw-r--r-- | source/fitz/output-cbz.c | 2 | ||||
-rw-r--r-- | source/fitz/output-svg.c | 2 |
4 files changed, 8 insertions, 6 deletions
diff --git a/include/mupdf/fitz/system.h b/include/mupdf/fitz/system.h index 5d5a8064..e5ad84e0 100644 --- a/include/mupdf/fitz/system.h +++ b/include/mupdf/fitz/system.h @@ -5,6 +5,8 @@ #define FZ_LARGEFILE #endif +#define FZ_PATH_MAX (2048) + /* The very first decision we need to make is, are we using the 64bit * file pointers code. This must happen before the stdio.h include. */ #ifdef FZ_LARGEFILE @@ -119,10 +121,6 @@ static __inline int signbit(double x) #define va_copy_end(a) va_end(a) #endif -#ifndef PATH_MAX -#define PATH_MAX (1024) -#endif - typedef signed char int8_t; typedef short int int16_t; typedef int int32_t; diff --git a/platform/x11/win_main.c b/platform/x11/win_main.c index ae2801dd..c079884c 100644 --- a/platform/x11/win_main.c +++ b/platform/x11/win_main.c @@ -16,6 +16,10 @@ #define WM_MOUSEWHEEL 0x020A #endif +#ifndef PATH_MAX +#define PATH_MAX (1024) +#endif + #define MIN(x,y) ((x) < (y) ? (x) : (y)) #define ID_ABOUT 0x1000 diff --git a/source/fitz/output-cbz.c b/source/fitz/output-cbz.c index 0e0a0195..82c4a6b7 100644 --- a/source/fitz/output-cbz.c +++ b/source/fitz/output-cbz.c @@ -107,7 +107,7 @@ static void pixmap_end_page(fz_context *ctx, fz_document_writer *wri_, fz_device *dev) { fz_pixmap_writer *wri = (fz_pixmap_writer*)wri_; - char path[PATH_MAX]; + char path[FZ_PATH_MAX]; fz_close_device(ctx, dev); fz_drop_device(ctx, dev); diff --git a/source/fitz/output-svg.c b/source/fitz/output-svg.c index 174906a2..a0ea0299 100644 --- a/source/fitz/output-svg.c +++ b/source/fitz/output-svg.c @@ -24,7 +24,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[PATH_MAX]; + char path[FZ_PATH_MAX]; float w = mediabox->x1 - mediabox->x0; float h = mediabox->y1 - mediabox->y0; |