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:
parent
0cd225cbf3
commit
b5eeca9f70
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user