summaryrefslogtreecommitdiff
path: root/lib/string.in.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-02-13 11:59:12 +0100
committerBruno Haible <bruno@clisp.org>2011-02-13 11:59:12 +0100
commite680a55c761b3e7f9a3b9e62ac1a9336f83fb628 (patch)
treed562031ee97b84063c8664b4b7f24f9f1f8010d7 /lib/string.in.h
parent9fbdea645df65ed2617658a72aa7370d621f7881 (diff)
downloadgnulib-e680a55c761b3e7f9a3b9e62ac1a9336f83fb628.tar.gz
Don't interfere with a program's definition of __attribute__.
* lib/stdio.in.h (__attribute__): Remove definition. (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros. (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf, printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf, vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF. * lib/string.in.h (__attribute__): Remove definition. Reported by Paul Eggert.
Diffstat (limited to 'lib/string.in.h')
-rw-r--r--lib/string.in.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/string.in.h b/lib/string.in.h
index 05b7618dae..652c9407bc 100644
--- a/lib/string.in.h
+++ b/lib/string.in.h
@@ -37,13 +37,8 @@
# include <wchar.h>
#endif
-#ifndef __attribute__
-/* This feature is available in gcc versions 2.5 and later. */
-# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5)
-# define __attribute__(Spec) /* empty */
-# endif
-#endif
-/* The attribute __pure__ was added in gcc 2.96. */
+/* The __attribute__ feature is available in gcc versions 2.5 and later.
+ The attribute __pure__ was added in gcc 2.96. */
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96)
# define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__))
#else