X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Ffile-type.c;h=c6c793a62a6ee754f1c52c5f3f88fe2d53287086;hb=1276a2c5f24c0c932426aca9c899fa524d2443f2;hp=f7090cdd1dc5ae20de6fe449f7af5bff5c44f8f8;hpb=349d7fe0e307d59d508b3579317ee8d4eacfeb9c;p=gnulib.git diff --git a/lib/file-type.c b/lib/file-type.c index f7090cdd1..c6c793a62 100644 --- a/lib/file-type.c +++ b/lib/file-type.c @@ -1,6 +1,6 @@ /* Return a string describing the type of a file. - Copyright (C) 1993-1994, 2001-2002, 2004-2006, 2009-2011 Free Software + Copyright (C) 1993-1994, 2001-2002, 2004-2006, 2009-2014 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify @@ -25,15 +25,7 @@ #include #define _(text) gettext (text) -/* 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 - -char const * _GL_ATTRIBUTE_PURE +char const * file_type (struct stat const *st) { /* See POSIX 1003.1-2001 XCU Table 4-8 lines 17093-17107 for some of