diff options
author | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2007-04-14 17:19:44 +0100 |
---|---|---|
committer | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2007-04-14 17:19:44 +0100 |
commit | 2339bb34dc3fcc155a04abda51df9fa00732df93 (patch) | |
tree | 1832d05244d55417fb3505263af74c238ec3c2a2 /src/xine-utils/attributes.h | |
parent | 1860c0e221f617406df80b0d35d22462dbcb9055 (diff) | |
parent | dc36f8d045cf4f723c44766f44c92e1810e37f4f (diff) | |
download | xine-lib-2339bb34dc3fcc155a04abda51df9fa00732df93.tar.gz xine-lib-2339bb34dc3fcc155a04abda51df9fa00732df93.tar.bz2 |
Merge changes.
Diffstat (limited to 'src/xine-utils/attributes.h')
-rw-r--r-- | src/xine-utils/attributes.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/xine-utils/attributes.h b/src/xine-utils/attributes.h index 27c6fc5bc..80bcadd7f 100644 --- a/src/xine-utils/attributes.h +++ b/src/xine-utils/attributes.h @@ -69,4 +69,16 @@ # define XINE_FORMAT_PRINTF_ARG(fmt) #endif +#ifdef SUPPORT_ATTRIBUTE_PACKED +# define XINE_PACKED __attribute__((packed)) +#else +# define XINE_PACKED +#endif + +#ifdef SUPPORT_ATTRIBUTE_MALLOC +# define XINE_MALLOC __attribute__((__malloc__)) +#else +# define XINE_MALLOC +#endif + #endif /* ATTRIBUTE_H_ */ |