X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fhave.h;h=a155b04b41abe7a94f106bc8430b52fac6cb8914;hb=28be4baae016a5a771d0d9ec6e97ef38a4fc9e46;hp=6c9d6754369a55e43cb4eaeb4ec6b32c7f70a536;hpb=0fe69908838248c28624beb540257892db6bdcbd;p=tinc diff --git a/src/have.h b/src/have.h index 6c9d6754..a155b04b 100644 --- a/src/have.h +++ b/src/have.h @@ -29,6 +29,8 @@ #define _CRT_NONSTDC_NO_WARNINGS #endif +#define __STDC_WANT_LIB_EXT1__ 1 + #include #include #include @@ -61,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