From ba90c7eb0ab1e068a06b28d40f4e0fc0a538873b Mon Sep 17 00:00:00 2001 From: Carlo Bramini Date: Tue, 29 May 2012 09:26:56 +0300 Subject: Check if compiler supports __attribute__((weak)) --- include/xine/attributes.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/xine') diff --git a/include/xine/attributes.h b/include/xine/attributes.h index 2326dab18..544228664 100644 --- a/include/xine/attributes.h +++ b/include/xine/attributes.h @@ -78,6 +78,12 @@ # define XINE_DEPRECATED #endif +#ifdef SUPPORT_ATTRIBUTE_WEAK +# define XINE_WEAK __attribute__((weak)) +#else +# define XINE_WEAK +#endif + #ifndef __attr_unused # ifdef SUPPORT_ATTRIBUTE_UNUSED # define __attr_unused __attribute__((__unused__)) -- cgit v1.2.3