diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2011-01-19 11:45:35 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2011-01-19 11:45:35 +0200 |
commit | 9d542ceebcbe40b174169c132ccfcdc720ca7089 (patch) | |
tree | 5ed9f931225122af289863e6d53aceb2f1013f0a /src/common/sysdefs.h | |
parent | Merge branch 'v5.0' (diff) | |
parent | Updated THANKS. (diff) | |
download | xz-9d542ceebcbe40b174169c132ccfcdc720ca7089.tar.xz |
Merge branch 'v5.0'
Diffstat (limited to 'src/common/sysdefs.h')
-rw-r--r-- | src/common/sysdefs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/sysdefs.h b/src/common/sysdefs.h index 51f06cf0..69370ba4 100644 --- a/src/common/sysdefs.h +++ b/src/common/sysdefs.h @@ -180,4 +180,10 @@ typedef unsigned char _Bool; # 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 |