From: Gerald Carter Date: Mon, 15 Nov 2004 21:21:50 +0000 (+0000) Subject: r3772: BUG 2006: patch from Michel Gravey ; fix build... X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~5591 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1bc79a28080f2ff783b49e5cf3adfdfc4a4940ee;p=thirdparty%2Fsamba.git r3772: BUG 2006: patch from Michel Gravey ; fix build when using gcc 3.0 --- diff --git a/source/include/includes.h b/source/include/includes.h index 6a1681fe1f1..ef0f761ff7d 100644 --- a/source/include/includes.h +++ b/source/include/includes.h @@ -45,7 +45,7 @@ #undef HAVE_TERMIOS_H #endif -#if (__GNUC__ >= 3) +#if (__GNUC__ >= 3 ) && (__GNUC_MINOR__ >= 1 ) /** 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 diff --git a/source/tdb/tdb.h b/source/tdb/tdb.h index 153b6e99232..901d470a50a 100644 --- a/source/tdb/tdb.h +++ b/source/tdb/tdb.h @@ -36,7 +36,7 @@ extern "C" { * 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 **/ -#if (__GNUC__ >= 3) +#if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 ) #define PRINTF_ATTRIBUTE(a1, a2) __attribute__ ((format (__printf__, a1, a2))) #else #define PRINTF_ATTRIBUTE(a1, a2)