/* exclude.c -- exclude file names
- Copyright (C) 1992-1994, 1997, 1999-2007, 2009-2011 Free Software
+ Copyright (C) 1992-1994, 1997, 1999-2007, 2009-2012 Free Software
Foundation, Inc.
This program is free software: you can redistribute it and/or modify
| FNM_CASEFOLD | FNM_EXTMATCH))
== 0);
-/* 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
-
/* Exclusion patterns are grouped into a singly-linked list of
"exclusion segments". Each segment represents a set of patterns
};
/* Return true if str has wildcard characters */
-bool _GL_ATTRIBUTE_PURE
+bool
fnmatch_pattern_has_wildcards (const char *str, int options)
{
const char *cset = "\\?*[]";