]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r3772: BUG 2006: patch from Michel Gravey <michel.gravey@optogone.com>; fix build...
authorGerald Carter <jerry@samba.org>
Mon, 15 Nov 2004 21:21:50 +0000 (21:21 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:53:17 +0000 (10:53 -0500)
source/include/includes.h
source/tdb/tdb.h

index 6a1681fe1f17ee03aada9857d7407141e029ff6e..ef0f761ff7df7bb626ecf4b3c0a2278d09e297d4 100644 (file)
@@ -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
index 153b6e99232b32f08d0b6f2deabecfc150e57620..901d470a50a4d7a60c92a0e613c54e4a719de952 100644 (file)
@@ -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)