From d69bd0339f77e487bc4db328a892872eb47e4083 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 20 Feb 2009 00:32:15 +0100 Subject: don't try to use weakref stuff on older compilers that don't really support it --- src/pulse/gccmacro.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pulse/gccmacro.h') diff --git a/src/pulse/gccmacro.h b/src/pulse/gccmacro.h index f110a740..58188ee2 100644 --- a/src/pulse/gccmacro.h +++ b/src/pulse/gccmacro.h @@ -118,7 +118,7 @@ #endif #ifndef PA_GCC_WEAKREF -#ifdef __GNUC__ +#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 -- cgit