| Index: src/common/sysdefs.h | 
| =================================================================== | 
| --- src/common/sysdefs.h	(revision 50504) | 
| +++ src/common/sysdefs.h	(working copy) | 
| @@ -24,6 +24,11 @@ | 
| #	include <config.h> | 
| #endif | 
|  | 
| +// Get standard-compliant stdio functions under MinGW and MinGW-w64. | 
| +#ifdef __MINGW32__ | 
| +#	define __USE_MINGW_ANSI_STDIO 1 | 
| +#endif | 
| + | 
| // size_t and NULL | 
| #include <stddef.h> | 
|  | 
| @@ -60,6 +65,9 @@ | 
| #ifndef PRIu32 | 
| #	define PRIu32 "u" | 
| #endif | 
| +#ifndef PRIx32 | 
| +#	define PRIx32 "x" | 
| +#endif | 
| #ifndef PRIX32 | 
| #	define PRIX32 "X" | 
| #endif | 
| @@ -71,6 +79,9 @@ | 
| #	ifndef PRIu64 | 
| #		define PRIu64 "llu" | 
| #	endif | 
| +#	ifndef PRIx64 | 
| +#		define PRIx64 "llx" | 
| +#	endif | 
| #	ifndef PRIX64 | 
| #		define PRIX64 "llX" | 
| #	endif | 
| @@ -81,6 +92,9 @@ | 
| #	ifndef PRIu64 | 
| #		define PRIu64 "lu" | 
| #	endif | 
| +#	ifndef PRIx64 | 
| +#		define PRIx64 "lx" | 
| +#	endif | 
| #	ifndef PRIX64 | 
| #		define PRIX64 "lX" | 
| #	endif | 
| @@ -166,4 +180,10 @@ | 
| #	define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0])) | 
| #endif | 
|  | 
| +#if (__GNUC__ == 4 && __GNUC_MINOR__ >= 3) || __GNUC__ > 4 | 
| +#	define lzma_attr_alloc_size(x) __attribute__((__alloc_size__(x))) | 
| +#else | 
| +#	define lzma_attr_alloc_size(x) | 
| #endif | 
| + | 
| +#endif | 
|  |