Deleted Added
full compact
sysdefs.h (215187) sysdefs.h (219001)
1///////////////////////////////////////////////////////////////////////////////
2//
3/// \file sysdefs.h
4/// \brief Common includes, definitions, system-specific things etc.
5///
6/// This file is used also by the lzma command line tool, that's why this
7/// file is separate from common.h.
8//

--- 51 unchanged lines hidden (view full) ---

60# define UINT32_C(n) n ## U
61#endif
62#ifndef UINT32_MAX
63# define UINT32_MAX UINT32_C(4294967295)
64#endif
65#ifndef PRIu32
66# define PRIu32 "u"
67#endif
1///////////////////////////////////////////////////////////////////////////////
2//
3/// \file sysdefs.h
4/// \brief Common includes, definitions, system-specific things etc.
5///
6/// This file is used also by the lzma command line tool, that's why this
7/// file is separate from common.h.
8//

--- 51 unchanged lines hidden (view full) ---

60# define UINT32_C(n) n ## U
61#endif
62#ifndef UINT32_MAX
63# define UINT32_MAX UINT32_C(4294967295)
64#endif
65#ifndef PRIu32
66# define PRIu32 "u"
67#endif
68#ifndef PRIx32
69# define PRIx32 "x"
70#endif
68#ifndef PRIX32
69# define PRIX32 "X"
70#endif
71
72#if ULONG_MAX == 4294967295UL
73# ifndef UINT64_C
74# define UINT64_C(n) n ## ULL
75# endif
76# ifndef PRIu64
77# define PRIu64 "llu"
78# endif
71#ifndef PRIX32
72# define PRIX32 "X"
73#endif
74
75#if ULONG_MAX == 4294967295UL
76# ifndef UINT64_C
77# define UINT64_C(n) n ## ULL
78# endif
79# ifndef PRIu64
80# define PRIu64 "llu"
81# endif
82# ifndef PRIx64
83# define PRIx64 "llx"
84# endif
79# ifndef PRIX64
80# define PRIX64 "llX"
81# endif
82#else
83# ifndef UINT64_C
84# define UINT64_C(n) n ## UL
85# endif
86# ifndef PRIu64
87# define PRIu64 "lu"
88# endif
85# ifndef PRIX64
86# define PRIX64 "llX"
87# endif
88#else
89# ifndef UINT64_C
90# define UINT64_C(n) n ## UL
91# endif
92# ifndef PRIu64
93# define PRIu64 "lu"
94# endif
95# ifndef PRIx64
96# define PRIx64 "lx"
97# endif
89# ifndef PRIX64
90# define PRIX64 "lX"
91# endif
92#endif
93#ifndef UINT64_MAX
94# define UINT64_MAX UINT64_C(18446744073709551615)
95#endif
96

--- 69 unchanged lines hidden (view full) ---

166// the system headers insist defining their own versions.
167#define my_min(x, y) ((x) < (y) ? (x) : (y))
168#define my_max(x, y) ((x) > (y) ? (x) : (y))
169
170#ifndef ARRAY_SIZE
171# define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0]))
172#endif
173
98# ifndef PRIX64
99# define PRIX64 "lX"
100# endif
101#endif
102#ifndef UINT64_MAX
103# define UINT64_MAX UINT64_C(18446744073709551615)
104#endif
105

--- 69 unchanged lines hidden (view full) ---

175// the system headers insist defining their own versions.
176#define my_min(x, y) ((x) < (y) ? (x) : (y))
177#define my_max(x, y) ((x) > (y) ? (x) : (y))
178
179#ifndef ARRAY_SIZE
180# define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0]))
181#endif
182
183#if (__GNUC__ == 4 && __GNUC_MINOR__ >= 3) || __GNUC__ > 4
184# define lzma_attr_alloc_size(x) __attribute__((__alloc_size__(x)))
185#else
186# define lzma_attr_alloc_size(x)
174#endif
187#endif
188
189#endif