From 689e6f8a811e9fb00928bc57f2acbb859ac3923a Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 13 Feb 2009 18:03:21 +0100 Subject: add definition for GCC style weak references --- src/pulse/gccmacro.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/pulse/gccmacro.h b/src/pulse/gccmacro.h index 0f751c03..8d9d4f02 100644 --- a/src/pulse/gccmacro.h +++ b/src/pulse/gccmacro.h @@ -117,4 +117,10 @@ #endif #endif +#ifndef PA_GCC_WEAKREF +#ifdef __GNUC__ +#define PA_GCC_WEAKREF(x) __attribute__((weakref(#x))); +#endif +#endif + #endif -- cgit