diff options
-rw-r--r-- | include/mupdf/fitz/system.h | 3 | ||||
-rw-r--r-- | source/pdf/pdf-xref.c | 6 |
2 files changed, 3 insertions, 6 deletions
diff --git a/include/mupdf/fitz/system.h b/include/mupdf/fitz/system.h index 05527710..18d75a5c 100644 --- a/include/mupdf/fitz/system.h +++ b/include/mupdf/fitz/system.h @@ -25,6 +25,9 @@ typedef unsigned char uint8_t; typedef unsigned short int uint16_t; typedef unsigned int uint32_t; typedef unsigned __int64 uint64_t; +#ifndef INT64_MAX +#define INT64_MAX 9223372036854775807i64 +#endif #else #include <stdint.h> /* needed for int64_t */ #endif diff --git a/source/pdf/pdf-xref.c b/source/pdf/pdf-xref.c index bbe377fd..566b114e 100644 --- a/source/pdf/pdf-xref.c +++ b/source/pdf/pdf-xref.c @@ -6,12 +6,6 @@ #include <limits.h> #include <string.h> -#ifdef _MSC_VER -#ifndef INT64_MAX -#define INT64_MAX 9223372036854775807i64 -#endif -#endif - #undef DEBUG_PROGESSIVE_ADVANCE #ifdef DEBUG_PROGESSIVE_ADVANCE |