don't try to use weakref stuff on older compilers that don't really support it

This commit is contained in:
Lennart Poettering 2009-02-20 00:32:15 +01:00
parent 205b0ba08e
commit d69bd0339f

View file

@ -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