summaryrefslogtreecommitdiff
path: root/lib/c-vasprintf.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2020-05-09 13:22:49 +0200
committerBruno Haible <bruno@clisp.org>2020-05-09 13:22:49 +0200
commit598afc1407a86340f948e5545f19c06afe13e059 (patch)
treeb88e5a89ae952d165f217593bb4ff81882ed050d /lib/c-vasprintf.h
parent7dc2704acc113493518945b2f751dfb2882a698a (diff)
downloadgnulib-598afc1407a86340f948e5545f19c06afe13e059.tar.gz
Remove redundant definitions of _GL_ATTRIBUTE_FORMAT.
* lib/argp.h (_GL_ATTRIBUTE_FORMAT): Remove macro. * lib/argp-fmtstream.h (_GL_ATTRIBUTE_FORMAT): Likewise. * lib/c-snprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise. * lib/c-vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise. * lib/c-vasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise. * lib/c-vsnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise. * lib/c-xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise. * lib/error.h (_GL_ATTRIBUTE_FORMAT): Likewise. * lib/parse-datetime.y (_GL_ATTRIBUTE_FORMAT): Likewise. * lib/vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise. * lib/xprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise. * lib/xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
Diffstat (limited to 'lib/c-vasprintf.h')
-rw-r--r--lib/c-vasprintf.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/c-vasprintf.h b/lib/c-vasprintf.h
index 3b5b5f7a68..588fbf01d9 100644
--- a/lib/c-vasprintf.h
+++ b/lib/c-vasprintf.h
@@ -20,18 +20,6 @@
/* Get va_list. */
#include <stdarg.h>
-/* The __attribute__ feature is available in gcc versions 2.5 and later.
- The __-protected variants of the attributes 'format' and 'printf' are
- accepted by gcc versions 2.6.4 (effectively 2.7) and later.
- We enable _GL_ATTRIBUTE_FORMAT only if these are supported too, because
- gnulib and libintl do '#define printf __printf__' when they override
- the 'printf' function. */
-#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
-# define _GL_ATTRIBUTE_FORMAT(spec) __attribute__ ((__format__ spec))
-#else
-# define _GL_ATTRIBUTE_FORMAT(spec) /* empty */
-#endif
-
#ifdef __cplusplus
extern "C" {
#endif