From 5c8447773f306e302c7182611e4fc03978c340b6 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 9 Jan 2006 21:44:30 +0000 Subject: r12801: Some more include/ cleanups (remove unused macros + move files to specific dirs) (This used to be commit 243cf760b077e155f5ac508aeebf819f7708a84e) --- source4/include/includes.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'source4/include/includes.h') diff --git a/source4/include/includes.h b/source4/include/includes.h index dd4f19009a..fae9a29a9c 100644 --- a/source4/include/includes.h +++ b/source4/include/includes.h @@ -36,6 +36,18 @@ /** Feel free to add definitions for other compilers here. */ #endif +#ifndef PRINTF_ATTRIBUTE +#if !defined(NO_PRINTF_ATTRIBUTE) && (__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 #include #include @@ -79,7 +91,7 @@ struct ipv4_addr { /* Lists, trees, caching, database... */ #include "xfile.h" -#include "lib/talloc/talloc.h" +#include "talloc/talloc.h" #include "nt_status.h" #include "structs.h" #include "trans2.h" -- cgit