X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Funiwidth%2Fwidth.c;h=a314e71bf0332b69668bef7d3f6da32d2e9bbe6d;hb=620ece7758e453efebf7f52a1ab9fc1c49a5020c;hp=f882257e87097f06a3d7412a10208685bf1a10fd;hpb=349d7fe0e307d59d508b3579317ee8d4eacfeb9c;p=gnulib.git diff --git a/lib/uniwidth/width.c b/lib/uniwidth/width.c index f882257e8..a314e71bf 100644 --- a/lib/uniwidth/width.c +++ b/lib/uniwidth/width.c @@ -22,14 +22,6 @@ #include "cjk.h" -/* 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 - /* * Non-spacing attribute table. * Consists of: @@ -319,7 +311,7 @@ static const signed char nonspacing_table_ind[240] = { }; /* Determine number of column positions required for UC. */ -int _GL_ATTRIBUTE_PURE +int uc_width (ucs4_t uc, const char *encoding) { /* Test for non-spacing or control character. */