diff options
-rw-r--r-- | src/macro.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/macro.h b/src/macro.h index 10b217f..d8b68d6 100644 --- a/src/macro.h +++ b/src/macro.h @@ -240,4 +240,10 @@ typedef void (*ca_free_cb_t)(void *); #define ca_streq(a, b) (strcmp((a),(b)) == 0) +#ifdef __GNUC__ +#define CA_GCC_DESTRUCTOR __attribute__ ((destructor)) +#else +#undef CA_GCC_DESTRUCTOR +#endif + #endif |