]> code.delx.au - pulseaudio/commitdiff
don't try to use weakref stuff on older compilers that don't really support it
authorLennart Poettering <lennart@poettering.net>
Thu, 19 Feb 2009 23:32:15 +0000 (00:32 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 19 Feb 2009 23:32:15 +0000 (00:32 +0100)
src/pulse/gccmacro.h

index f110a7408e792f445d4d499a5802807d76f14fef..58188ee29e2c00a6ee94cfed0211834590e12409 100644 (file)
 #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