# HG changeset patch # User Sebastien Jodogne # Date 1771602450 -3600 # Node ID 24f00121619f9ce3d2c57b17dce036bc2ad92ff1 # Parent 81746b9484c451f0208faec408606df4fd3c0351 replaced ints.h from minizip by stdint.h diff -r 81746b9484c4 -r 24f00121619f OrthancFramework/Resources/ThirdParty/minizip/SyncMinizip.py --- a/OrthancFramework/Resources/ThirdParty/minizip/SyncMinizip.py Fri Feb 20 16:40:13 2026 +0100 +++ b/OrthancFramework/Resources/ThirdParty/minizip/SyncMinizip.py Fri Feb 20 16:47:30 2026 +0100 @@ -9,7 +9,6 @@ for f in [ 'crypt.h', - 'ints.h', 'ioapi.c', 'ioapi.h', 'skipset.h', diff -r 81746b9484c4 -r 24f00121619f OrthancFramework/Resources/ThirdParty/minizip/ints.h --- a/OrthancFramework/Resources/ThirdParty/minizip/ints.h Fri Feb 20 16:40:13 2026 +0100 +++ b/OrthancFramework/Resources/ThirdParty/minizip/ints.h Fri Feb 20 16:47:30 2026 +0100 @@ -1,57 +1,16 @@ -/* ints.h -- create integer types for 8, 16, 32, and 64 bits - * Copyright (C) 2024 Mark Adler - * For conditions of distribution and use, see the copyright notice in zlib.h - * - * There exist compilers with limits.h, but not stdint.h or inttypes.h. - */ - #ifndef INTS_H #define INTS_H -#include -#if defined(UCHAR_MAX) && UCHAR_MAX == 0xff - typedef signed char i8_t; - typedef unsigned char ui8_t; -#else -# error "no 8-bit integer" -#endif -#if defined(USHRT_MAX) && USHRT_MAX == 0xffff - typedef short i16_t; - typedef unsigned short ui16_t; -#elif defined(UINT_MAX) && UINT_MAX == 0xffff - typedef int i16_t; - typedef unsigned ui16_t; -#else -# error "no 16-bit integer" + +#include // This one is provided by Orthanc + +typedef int16_t i16_t; +typedef int32_t i32_t; +typedef int64_t i64_t; +typedef int8_t i8_t; + +typedef uint16_t ui16_t; +typedef uint32_t ui32_t; +typedef uint64_t ui64_t; +typedef uint8_t ui8_t; + #endif -#if defined(UINT_MAX) && UINT_MAX == 0xffffffff - typedef int i32_t; - typedef unsigned ui32_t; -# define PI32 "d" -# define PUI32 "u" -#elif defined(ULONG_MAX) && ULONG_MAX == 0xffffffff - typedef long i32_t; - typedef unsigned long ui32_t; -# define PI32 "ld" -# define PUI32 "lu" -#else -# error "no 32-bit integer" -#endif -#if defined(ULONG_MAX) && ULONG_MAX == 0xffffffffffffffff - typedef long i64_t; - typedef unsigned long ui64_t; -# define PI64 "ld" -# define PUI64 "lu" -#elif defined(ULLONG_MAX) && ULLONG_MAX == 0xffffffffffffffff - typedef long long i64_t; - typedef unsigned long long ui64_t; -# define PI64 "lld" -# define PUI64 "llu" -#elif defined(ULONG_LONG_MAX) && ULONG_LONG_MAX == 0xffffffffffffffff - typedef long long i64_t; - typedef unsigned long long ui64_t; -# define PI64 "lld" -# define PUI64 "llu" -#else -# error "no 64-bit integer" -#endif -#endif