Switch to unified view

a/src/windows/fnmatch.c b/src/windows/fnmatch.c
...
...
14
/* Modified slightly by Brian Berliner <berliner@sun.com> and
14
/* Modified slightly by Brian Berliner <berliner@sun.com> and
15
   Jim Blandy <jimb@cyclic.com> for CVS use */
15
   Jim Blandy <jimb@cyclic.com> for CVS use */
16
/* Modified slightly by j.f. dockes for recoll use */
16
/* Modified slightly by j.f. dockes for recoll use */
17
17
18
#include "autoconfig.h"
18
#include "autoconfig.h"
19
#ifdef _WIN32
20
#include <ctype.h>
21
static inline int fold_fn_char(int c)
22
{
23
    /* Only ASCII for now... */
24
    if (c == '\\')
25
        return '/';
26
    if (c > 0 && c <= 127)
27
        return tolower(c);
28
    return c;
29
}
30
#define FOLD_FN_CHAR(c) fold_fn_char(c)
31
#endif /* _WIN32 */
19
32
20
/* Some file systems are case-insensitive.  If FOLD_FN_CHAR is
33
/* Some file systems are case-insensitive.  If FOLD_FN_CHAR is
21
   #defined, it maps the character C onto its "canonical" form.  In a
34
   #defined, it maps the character C onto its "canonical" form.  In a
22
   case-insensitive system, it would map all alphanumeric characters
35
   case-insensitive system, it would map all alphanumeric characters
23
   to lower case.  Under Windows NT, / and \ are both path component
36
   to lower case.  Under Windows NT, / and \ are both path component