[1.5] added int64_t define for win platforms in int.h so that r2990 actually workswith windows

This commit is contained in:
Antonin Descampe 2015-01-27 16:51:27 +00:00
parent 0ec0b2594c
commit 2c3f5c269a
1 changed files with 18 additions and 0 deletions

View File

@ -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 <stdint.h>
#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