summaryrefslogtreecommitdiffstats
path: root/src/pulse/gccmacro.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pulse/gccmacro.h')
-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