diff options
author | Michael Vrhel <michael.vrhel@artifex.com> | 2017-02-22 09:40:31 -0800 |
---|---|---|
committer | Michael Vrhel <michael.vrhel@artifex.com> | 2017-02-22 09:40:31 -0800 |
commit | 6477d336520e3278b56a39c4fd98f220522cb962 (patch) | |
tree | cff18451ec87cafb6991413a24f04c7831a85b39 | |
parent | c109362f27679a5b8e56696292d96f9b067691ce (diff) | |
download | mupdf-6477d336520e3278b56a39c4fd98f220522cb962.tar.xz |
Move PATH_MAX to system.h
Better to have this defined at the system level
rather than scattered about in various files.
-rw-r--r-- | include/mupdf/fitz/system.h | 4 | ||||
-rw-r--r-- | platform/x11/win_main.c | 4 | ||||
-rw-r--r-- | source/fitz/output-png.c | 4 |
3 files changed, 4 insertions, 8 deletions
diff --git a/include/mupdf/fitz/system.h b/include/mupdf/fitz/system.h index bbc688d7..d6753782 100644 --- a/include/mupdf/fitz/system.h +++ b/include/mupdf/fitz/system.h @@ -119,6 +119,10 @@ 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 76455eea..05c934fe 100644 --- a/platform/x11/win_main.c +++ b/platform/x11/win_main.c @@ -37,10 +37,6 @@ static int justcopied = 0; static pdfapp_t gapp; -#ifndef PATH_MAX -#define PATH_MAX (1024) -#endif - static wchar_t wbuf[PATH_MAX]; static char filename[PATH_MAX]; diff --git a/source/fitz/output-png.c b/source/fitz/output-png.c index 993bda9f..524e48bf 100644 --- a/source/fitz/output-png.c +++ b/source/fitz/output-png.c @@ -2,10 +2,6 @@ #include <zlib.h> -#ifndef PATH_MAX -#define PATH_MAX (1024) -#endif - static inline void big32(unsigned char *buf, unsigned int v) { buf[0] = (v >> 24) & 0xff; |