From 2c3f5c269a3c34ece15de720c746d1ae809c5e4e Mon Sep 17 00:00:00 2001 From: Antonin Descampe Date: Tue, 27 Jan 2015 16:51:27 +0000 Subject: [PATCH] [1.5] added int64_t define for win platforms in int.h so that r2990 actually workswith windows --- libopenjpeg/int.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/libopenjpeg/int.h b/libopenjpeg/int.h index a5563f46..a15aa95c 100644 --- a/libopenjpeg/int.h +++ b/libopenjpeg/int.h @@ -43,6 +43,24 @@ The functions in INT.H have for goal to realize operations on integers. /** @name Exported functions (see also openjpeg.h) */ /*@{*/ /* ----------------------------------------------------------------------- */ + +#ifdef HAVE_STDINT_H +#include +#else +#if defined(_WIN32) +typedef signed __int8 int8_t; +typedef unsigned __int8 uint8_t; +typedef signed __int16 int16_t; +typedef unsigned __int16 uint16_t; +typedef signed __int32 int32_t; +typedef unsigned __int32 uint32_t; +typedef signed __int64 int64_t; +typedef unsigned __int64 uint64_t; +#else +#error unsupported platform +#endif +#endif + /** Get the minimum of two integers @return Returns a if a < b else b