summaryrefslogtreecommitdiff
path: root/src/numfmt.c
diff options
context:
space:
mode:
authorJoachim Schmitz <jojo@schmitz-digital.de>2013-02-19 11:09:44 +0000
committerPádraig Brady <P@draigBrady.com>2013-02-20 04:04:25 +0000
commit04b035670de49429d48dea726125caa613c1629f (patch)
tree604fa10fa715cea7dda037e72c8eee70044828d2 /src/numfmt.c
parentb469fa044a81762a9eb0da92b4fb47467154c4f1 (diff)
downloadcoreutils-04b035670de49429d48dea726125caa613c1629f.tar.xz
build: fix numfmt build error on compilers without __attribute
* src/numfmt.c (): Use the more standard _GL_ATTRIBUTE_PURE which is elided where required. Reported in http://bugs.gnu.org/10305
Diffstat (limited to 'src/numfmt.c')
-rw-r--r--src/numfmt.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/numfmt.c b/src/numfmt.c
index 8c21c2b3a..f689a9742 100644
--- a/src/numfmt.c
+++ b/src/numfmt.c
@@ -1194,8 +1194,7 @@ process_suffixed_number (char *text, long double *result, size_t *precision)
/* Skip the requested number of fields in the input string.
Returns a pointer to the *delimiter* of the requested field,
or a pointer to NUL (if reached the end of the string). */
-static inline char *
-__attribute ((pure))
+static inline char * _GL_ATTRIBUTE_PURE
skip_fields (char *buf, int fields)
{
char *ptr = buf;