summaryrefslogtreecommitdiffstats
path: root/src/pulse
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-02-20 00:32:15 +0100
committerLennart Poettering <lennart@poettering.net>2009-02-20 00:32:15 +0100
commitd69bd0339f77e487bc4db328a892872eb47e4083 (patch)
tree5a5877d35851dd0265d571ed41367f13603f4b76 /src/pulse
parent205b0ba08e1f796481e0bba11c0813266af3947f (diff)
don't try to use weakref stuff on older compilers that don't really support it
Diffstat (limited to 'src/pulse')
-rw-r--r--src/pulse/gccmacro.h2
1 files changed, 1 insertions, 1 deletions
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