]> granicus.if.org Git - openjpeg/commitdiff
[trunk] add definitions for 64 bits integer types, and define OPJ_OFF_T to map to...
authorJulien Malik <julien.malik@paraiso.me>
Mon, 28 Nov 2011 15:32:29 +0000 (15:32 +0000)
committerJulien Malik <julien.malik@paraiso.me>
Mon, 28 Nov 2011 15:32:29 +0000 (15:32 +0000)
libopenjpeg/openjpeg.h

index d71b42868e35cf37cf74b2f6943ce0bd9525ac62..34915a16fafa7c4d1db5f58b3c5182ce3a426587 100644 (file)
@@ -76,6 +76,7 @@ typedef int opj_bool; /*FIXME it should be to follow the name of others OPJ_TYPE
 #define OPJ_TRUE 1
 #define OPJ_FALSE 0
 
+// FIXME : should be better defined by configure/CMake test
 typedef unsigned int   OPJ_UINT32;
 typedef int                            OPJ_INT32;
 typedef unsigned short OPJ_UINT16;
@@ -86,6 +87,17 @@ typedef unsigned int OPJ_SIZE_T;
 typedef double                 OPJ_FLOAT64;
 typedef float                  OPJ_FLOAT32;
 
+#if (defined(WIN32) || defined(WIN64)) && !defined(__MINGW32__)
+typedef signed __int64     OPJ_INT64;
+typedef unsigned __int64   OPJ_UINT64;
+#else
+typedef long long          OPJ_INT64;
+typedef unsigned long long OPJ_UINT64;
+#endif
+
+/* 64-bit file and blob offset type */
+typedef OPJ_INT64 OPJ_OFF_T;
+
 // Avoid compile-time warning because parameter is not used
 #define OPJ_ARG_NOT_USED(x) (void)(x)