wrap destructor gcc attribute in macro

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1525 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2007-07-25 14:41:54 +00:00
parent a094923fd5
commit 279b1b3311

View file

@ -52,4 +52,10 @@
#define PA_GCC_UNUSED
#endif
#ifdef __GNUC__
#define PA_GCC_DESTRUCTOR __attribute__ ((destructor))
#else
#define PA_GCC_DESTRUCTOR
#endif
#endif