diff --git a/src/pulsecore/gccmacro.h b/src/pulsecore/gccmacro.h index 57d280064..f3ace593e 100644 --- a/src/pulsecore/gccmacro.h +++ b/src/pulsecore/gccmacro.h @@ -52,4 +52,10 @@ #define PA_GCC_UNUSED #endif +#ifdef __GNUC__ +#define PA_GCC_DESTRUCTOR __attribute__ ((destructor)) +#else +#define PA_GCC_DESTRUCTOR +#endif + #endif