summaryrefslogtreecommitdiff
path: root/lib/propername.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-04-25 10:38:33 +0200
committerJim Meyering <meyering@redhat.com>2011-04-25 10:38:33 +0200
commit6829a6c0c428c91768aa4314752ba92b1340e11b (patch)
treec7efb647d10854ee2fe46ca33b3f74f177f1d799 /lib/propername.c
parentea868d4a150963fafb230c888dc093a2e06a3613 (diff)
downloadgnulib-6829a6c0c428c91768aa4314752ba92b1340e11b.tar.gz
Revert "use _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE"
This reverts commit 349d7fe0e307d59d508b3579317ee8d4eacfeb9c. Revert accidentally-pushed patch. Not yet ready.
Diffstat (limited to 'lib/propername.c')
-rw-r--r--lib/propername.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/propername.c b/lib/propername.c
index f2e80d15a7..b74923de95 100644
--- a/lib/propername.c
+++ b/lib/propername.c
@@ -38,14 +38,6 @@
#include "xalloc.h"
#include "gettext.h"
-/* The attribute __const__ was added in gcc 2.95. */
-#undef _GL_ATTRIBUTE_CONST
-#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
-# define _GL_ATTRIBUTE_CONST __attribute__ ((__const__))
-#else
-# define _GL_ATTRIBUTE_CONST /* empty */
-#endif
-
/* Tests whether STRING contains trim (SUB), starting and ending at word
boundaries.
@@ -156,7 +148,7 @@ mbsstr_trimmed_wordbounded (const char *string, const char *sub)
/* Return the localization of NAME. NAME is written in ASCII. */
-const char * _GL_ATTRIBUTE_CONST
+const char *
proper_name (const char *name)
{
/* See whether there is a translation. */