From cfd7b72175341d19baf7a76cc3e66960df0012cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Mon, 5 May 2008 21:59:42 +0200 Subject: Check for malloc attribute and define XINE_MALLOC for use in xineutils.h, rather than just checking for GCC 3. --- src/xine-utils/attributes.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/xine-utils/attributes.h') 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_ */ -- cgit v1.2.3