diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2012-08-14 19:10:02 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2012-08-16 13:40:43 +0200 |
commit | 0ebb63f04b294eb9ab5e26f120c7f5151ffb3ce9 (patch) | |
tree | 4162e90aa70fc2207f5f8917049fb5a00335d1e5 | |
parent | 1e4d9c23583f15b1ceda03fdc0d1fc00c9c81a8a (diff) | |
download | mupdf-0ebb63f04b294eb9ab5e26f120c7f5151ffb3ce9.tar.xz |
Make 64-bit integers available everywhere in fitz
-rw-r--r-- | fitz/filt_jbig2d.c | 15 | ||||
-rw-r--r-- | fitz/fitz-internal.h | 16 |
2 files changed, 15 insertions, 16 deletions
diff --git a/fitz/filt_jbig2d.c b/fitz/filt_jbig2d.c index 415534c0..d7f09cee 100644 --- a/fitz/filt_jbig2d.c +++ b/fitz/filt_jbig2d.c @@ -1,20 +1,5 @@ #include "fitz-internal.h" -#ifdef _WIN32 /* Microsoft Visual C++ */ - -typedef signed char int8_t; -typedef short int int16_t; -typedef int int32_t; -typedef __int64 int64_t; - -typedef unsigned char uint8_t; -typedef unsigned short int uint16_t; -typedef unsigned int uint32_t; - -#else -#include <inttypes.h> -#endif - #include <jbig2.h> typedef struct fz_jbig2d_s fz_jbig2d; diff --git a/fitz/fitz-internal.h b/fitz/fitz-internal.h index 20e9e8b0..3b35dfaa 100644 --- a/fitz/fitz-internal.h +++ b/fitz/fitz-internal.h @@ -3,13 +3,27 @@ #include "fitz.h" +#ifdef _WIN32 /* Microsoft Visual C++ */ + +typedef signed char int8_t; +typedef short int int16_t; +typedef int int32_t; +typedef __int64 int64_t; + +typedef unsigned char uint8_t; +typedef unsigned short int uint16_t; +typedef unsigned int uint32_t; + +#else +#include <inttypes.h> +#endif + struct fz_warn_context_s { char message[256]; int count; }; - fz_context *fz_clone_context_internal(fz_context *ctx); void fz_new_aa_context(fz_context *ctx); |