X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fhave.h;h=a155b04b41abe7a94f106bc8430b52fac6cb8914;hb=38a4eb4ebc730d805fcab9d64fe988be42a99122;hp=d176098fd62152059b6b03a2c97e150981391852;hpb=c44b08613508c993e7fd9f625e0b1b4775efffed;p=tinc diff --git a/src/have.h b/src/have.h index d176098f..a155b04b 100644 --- a/src/have.h +++ b/src/have.h @@ -63,6 +63,12 @@ #endif #endif +#if defined(HAVE_ATTR_MALLOC_WITH_ARG) +#define ATTR_DEALLOCATOR(dealloc) __attribute__((__malloc__(dealloc))) +#else +#define ATTR_DEALLOCATOR(dealloc) +#endif + #ifdef HAVE_ATTR_MALLOC #define ATTR_MALLOC __attribute__((__malloc__)) #else