diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-05-05 21:59:42 +0200 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-05-05 21:59:42 +0200 |
commit | cfd7b72175341d19baf7a76cc3e66960df0012cd (patch) | |
tree | 32bb5e27e08a36102267bbed857bc9cd24660746 /src/xine-utils/attributes.h | |
parent | ac8886fbc94069026f5ad921145d0c9007df7411 (diff) | |
download | xine-lib-cfd7b72175341d19baf7a76cc3e66960df0012cd.tar.gz xine-lib-cfd7b72175341d19baf7a76cc3e66960df0012cd.tar.bz2 |
Check for malloc attribute and define XINE_MALLOC for use in xineutils.h, rather than just checking for GCC 3.
Diffstat (limited to 'src/xine-utils/attributes.h')
-rw-r--r-- | src/xine-utils/attributes.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/xine-utils/attributes.h b/src/xine-utils/attributes.h index 2085be571..3d6e66359 100644 --- a/src/xine-utils/attributes.h +++ b/src/xine-utils/attributes.h @@ -89,4 +89,10 @@ # define XINE_FORMAT_PRINTF_ARG(fmt) #endif +#ifdef SUPPORT_ATTRIBUTE_MALLOC +# define XINE_MALLOC __attribute__((__malloc__)) +#else +# define XINE_MALLOC +#endif + #endif /* ATTRIBUTE_H_ */ |