* configure.in (ATTRIBUTE_FORMAT, ATTRIBUTE_FORMAT_PRINTF): New macros.
This commit is contained in:
parent
9e0e57c7d6
commit
aa18133456
2 changed files with 18 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
2011-04-05 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
* configure.in (ATTRIBUTE_FORMAT, ATTRIBUTE_FORMAT_PRINTF): New macros.
|
||||
|
||||
2011-04-01 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
Replace 2 copies of readlink code with 1 gnulib version (Bug#8401).
|
||||
|
|
14
configure.in
14
configure.in
|
@ -3581,6 +3581,20 @@ typedef unsigned size_t;
|
|||
#define EXTERNALLY_VISIBLE
|
||||
#endif
|
||||
|
||||
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
|
||||
# define ATTRIBUTE_FORMAT(spec) __attribute__ ((__format__ spec))
|
||||
#else
|
||||
# define ATTRIBUTE_FORMAT(spec) /* empty */
|
||||
#endif
|
||||
|
||||
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)
|
||||
# define ATTRIBUTE_FORMAT_PRINTF(formatstring_parameter, first_argument) \
|
||||
ATTRIBUTE_FORMAT ((__gnu_printf__, formatstring_parameter, first_argument))
|
||||
#else
|
||||
# define ATTRIBUTE_FORMAT_PRINTF(formatstring_parameter, first_argument) \
|
||||
ATTRIBUTE_FORMAT ((__printf__, formatstring_parameter, first_argument))
|
||||
#endif
|
||||
|
||||
/* Some versions of GNU/Linux define noinline in their headers. */
|
||||
#ifdef noinline
|
||||
#undef noinline
|
||||
|
|
Loading…
Add table
Reference in a new issue