diff options
author | Carlo Bramini <carlo.bramix@libero.it> | 2012-05-29 09:26:56 +0300 |
---|---|---|
committer | Carlo Bramini <carlo.bramix@libero.it> | 2012-05-29 09:26:56 +0300 |
commit | ba90c7eb0ab1e068a06b28d40f4e0fc0a538873b (patch) | |
tree | 7771d380740c846cf382d4851b0d41262386fb51 /include | |
parent | f91042b188c47568472defa6d567b5f5a2c268f5 (diff) | |
download | xine-lib-ba90c7eb0ab1e068a06b28d40f4e0fc0a538873b.tar.gz xine-lib-ba90c7eb0ab1e068a06b28d40f4e0fc0a538873b.tar.bz2 |
Check if compiler supports __attribute__((weak))
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__)) |