From f415ba5bcfdbf22571526ce4e5e103d1eebab5c5 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Fri, 21 Sep 2007 02:00:50 +0000 Subject: r25267: Move PRINTF_ATTRIBUTE to lib/util as well. (This used to be commit 72b9d6c03661d72e83a5d60d43b75bb9bd5f5285) --- source4/include/includes.h | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) (limited to 'source4/include') diff --git a/source4/include/includes.h b/source4/include/includes.h index b93a3faf29..d78f297aa6 100644 --- a/source4/include/includes.h +++ b/source4/include/includes.h @@ -32,30 +32,17 @@ #include "local.h" -#ifndef PRINTF_ATTRIBUTE -#if __GNUC__ >= 3 -/** 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 -#endif - #include "system/time.h" #include "system/wait.h" -#ifndef _PRINTF_ATTRIBUTE -#define _PRINTF_ATTRIBUTE(a1, a2) PRINTF_ATTRIBUTE(a1, a2) -#endif - /* Lists, trees, caching, database... */ #include #include #include #include "libcli/util/nt_status.h" +#ifndef _PRINTF_ATTRIBUTE +#define _PRINTF_ATTRIBUTE(a1, a2) PRINTF_ATTRIBUTE(a1, a2) +#endif #include "charset/charset.h" #include "util/util.h" #include "librpc/gen_ndr/misc.h" -- cgit