X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fbasename-lgpl.c;h=9307e83142b6e8dce11e8e24fb2b34c1f1313213;hb=23eecb48e39afd0d267d64d40ba6bf97aa865e13;hp=f2738cd407451f646eea381e35e18bb15e409fa5;hpb=349d7fe0e307d59d508b3579317ee8d4eacfeb9c;p=gnulib.git diff --git a/lib/basename-lgpl.c b/lib/basename-lgpl.c index f2738cd40..9307e8314 100644 --- a/lib/basename-lgpl.c +++ b/lib/basename-lgpl.c @@ -1,6 +1,6 @@ /* basename.c -- return the last element in a file name - Copyright (C) 1990, 1998-2001, 2003-2006, 2009-2011 Free Software + Copyright (C) 1990, 1998-2001, 2003-2006, 2009-2013 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify @@ -22,19 +22,11 @@ #include -/* The attribute __pure__ was added in gcc 2.96. */ -#undef _GL_ATTRIBUTE_PURE -#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96) -# define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__)) -#else -# define _GL_ATTRIBUTE_PURE /* empty */ -#endif - /* Return the address of the last file name component of NAME. If NAME has no relative file name components because it is a file system root, return the empty string. */ -char * _GL_ATTRIBUTE_PURE +char * last_component (char const *name) { char const *base = name + FILE_SYSTEM_PREFIX_LEN (name);