From 0ebb63f04b294eb9ab5e26f120c7f5151ffb3ce9 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Tue, 14 Aug 2012 19:10:02 +0200 Subject: Make 64-bit integers available everywhere in fitz --- fitz/filt_jbig2d.c | 15 --------------- 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 -#endif - #include 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 +#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); -- cgit v1.2.3