diff options
Diffstat (limited to 'src/pulse/gccmacro.h')
| -rw-r--r-- | src/pulse/gccmacro.h | 11 | 
1 files changed, 9 insertions, 2 deletions
| diff --git a/src/pulse/gccmacro.h b/src/pulse/gccmacro.h index 0b1a1a66..58188ee2 100644 --- a/src/pulse/gccmacro.h +++ b/src/pulse/gccmacro.h @@ -88,7 +88,7 @@  #endif  #ifndef PA_GCC_PACKED -#ifdef __GNUCC__ +#ifdef __GNUC__  #define PA_GCC_PACKED __attribute__ ((packed))  #else  /** Structure shall be packed in memory **/ @@ -109,7 +109,7 @@  #endif  #ifndef PA_GCC_MALLOC -#ifdef __GNUCC__ +#ifdef __GNUC__  #define PA_GCC_MALLOC __attribute__ ((malloc))  #else  /** Macro for usage of GCC's malloc attribute */ @@ -117,4 +117,11 @@  #endif  #endif +#ifndef PA_GCC_WEAKREF +#if defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ > 1)) || (__GNUC__ > 4)) +/** Macro for usgae of GCC's weakref attribute */ +#define PA_GCC_WEAKREF(x) __attribute__((weakref(#x))); +#endif +#endif +  #endif | 
