X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fhave.h;h=318d549f295eb897720e120cad3dece6c6415b30;hb=refs%2Fheads%2F1.1;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