summaryrefslogtreecommitdiff
path: root/libopenjpeg
diff options
context:
space:
mode:
authorAntonin Descampe <antonin@gmail.com>2015-01-27 16:51:27 +0000
committerAntonin Descampe <antonin@gmail.com>2015-01-27 16:51:27 +0000
commit2c3f5c269a3c34ece15de720c746d1ae809c5e4e (patch)
treeae2302bc607b13d282eb259bc8907a4df9a2e96e /libopenjpeg
parent0ec0b2594c77da669e8ca6357970793a02166e86 (diff)
[1.5] added int64_t define for win platforms in int.h so that r2990 actually workswith windows
Diffstat (limited to 'libopenjpeg')
-rw-r--r--libopenjpeg/int.h18
1 files changed, 18 insertions, 0 deletions
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 <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