X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftalloc%2Ftalloc.h;h=fb2cbad7446d013076971da5c4e5a227426c9402;hp=e4f15aeecbb1b9dde7909525da89e88c727936e9;hb=f4b1f445a7b21b1599530afb897ef54efe15479d;hpb=d707abbb2ff707dd34aa77c9028f23f2266f8d5f diff --git a/ccan/talloc/talloc.h b/ccan/talloc/talloc.h index e4f15aee..fb2cbad7 100644 --- a/ccan/talloc/talloc.h +++ b/ccan/talloc/talloc.h @@ -27,6 +27,7 @@ #include #include #include +#include #include "config.h" /* @@ -39,16 +40,6 @@ #define __location__ __FILE__ ":" __TALLOC_STRING_LINE3__ #endif -#if HAVE_ATTRIBUTE_PRINTF -/** Use gcc attribute to check printf fns. a1 is the 1-based index of - * the parameter containing the format, and a2 the index of the first - * argument. Note that some gcc 2.x versions don't handle this - * properly **/ -#define PRINTF_ATTRIBUTE(a1, a2) __attribute__ ((format (__printf__, a1, a2))) -#else -#define PRINTF_ATTRIBUTE(a1, a2) -#endif - /* try to make talloc_set_destructor() and talloc_steal() type safe, if we have a recent gcc */ #if HAVE_TYPEOF