diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/xine.h | 2 | ||||
-rw-r--r-- | include/xine/attributes.h | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/include/xine.h b/include/xine.h index 19731e820..073a9facd 100644 --- a/include/xine.h +++ b/include/xine.h @@ -120,7 +120,7 @@ xine_t *xine_new (void) XINE_PROTECTED; /* allow the setting of some flags before xine_init * FIXME-ABI: this is currently GLOBAL */ -void xine_set_flags (xine_t *, int) XINE_PROTECTED __attribute__((weak)); +void xine_set_flags (xine_t *, int) XINE_PROTECTED XINE_WEAK; #define XINE_FLAG_NO_WRITE_CACHE 1 /* 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__)) |