X-Git-Url: https://code.delx.au/pulseaudio/blobdiff_plain/44bca66c5929e63bb39ed68420a74c97523b411f..77a68b56ab1c70a0e0c670213431e6908311db47:/src/pulse/gccmacro.h?ds=sidebyside diff --git a/src/pulse/gccmacro.h b/src/pulse/gccmacro.h index 0f751c03..1e818ff4 100644 --- a/src/pulse/gccmacro.h +++ b/src/pulse/gccmacro.h @@ -8,7 +8,7 @@ PulseAudio is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published - by the Free Software Foundation; either version 2 of the License, + by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. PulseAudio is distributed in the hope that it will be useful, but @@ -49,7 +49,7 @@ #ifdef __GNUC__ #define PA_GCC_UNUSED __attribute__ ((unused)) #else -/** Macro for not used parameter */ +/** Macro for not used function, variable or parameter */ #define PA_GCC_UNUSED #endif @@ -117,4 +117,11 @@ #endif #endif +#ifndef PA_GCC_WEAKREF +#if defined(__GNUC__) && defined(__ELF__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ > 1)) || (__GNUC__ > 4)) +/** Macro for usage of GCC's weakref attribute */ +#define PA_GCC_WEAKREF(x) __attribute__((weakref(#x))) +#endif +#endif + #endif