diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2017-12-11 19:16:05 +0100 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2017-12-13 21:38:26 +0100 |
commit | 72f9012f643934e545d646795867057468815a00 (patch) | |
tree | 259d107f9e9c79f95a62fe3766e0dff717eacbc7 | |
parent | bd41b371219c68e0c4d047bc4921bd0fd941b90f (diff) | |
download | mupdf-72f9012f643934e545d646795867057468815a00.tar.xz |
Define constant INT64_MAX where int64_t is declared.
-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 |