1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

r3772: BUG 2006: patch from Michel Gravey <michel.gravey@optogone.com>; fix build when using gcc 3.0

(This used to be commit 1bc79a2808)
This commit is contained in:
Gerald Carter 2004-11-15 21:21:50 +00:00 committed by Gerald (Jerry) Carter
parent 0cd225cbf3
commit b5eeca9f70
2 changed files with 2 additions and 2 deletions

View 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

View 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)