add definition for GCC style weak references

This commit is contained in:
Lennart Poettering 2009-02-13 18:03:21 +01:00
parent 44bca66c59
commit 689e6f8a81

View file

@ -117,4 +117,10 @@
#endif
#endif
#ifndef PA_GCC_WEAKREF
#ifdef __GNUC__
#define PA_GCC_WEAKREF(x) __attribute__((weakref(#x)));
#endif
#endif
#endif