]>
Commit | Line | Data |
---|---|---|
e9c6571d | 1 | /* |
bb742ede | 2 | * Copyright (C) 2009-2011 the libgit2 contributors |
e9c6571d | 3 | * |
bb742ede VM |
4 | * This file is part of libgit2, distributed under the GNU GPL v2 with |
5 | * a Linking Exception. For full terms see the included COPYING file. | |
e9c6571d VM |
6 | */ |
7 | #ifndef INCLUDE_fnmatch__w32_h__ | |
8 | #define INCLUDE_fnmatch__w32_h__ | |
9 | ||
10 | #include "common.h" | |
11 | ||
87d9869f VM |
12 | #define FNM_NOMATCH 1 /* Match failed. */ |
13 | #define FNM_NOSYS 2 /* Function not supported (unused). */ | |
e9c6571d | 14 | |
87d9869f VM |
15 | #define FNM_NOESCAPE 0x01 /* Disable backslash escaping. */ |
16 | #define FNM_PATHNAME 0x02 /* Slash must be matched by slash. */ | |
17 | #define FNM_PERIOD 0x04 /* Period must be matched by period. */ | |
18 | #define FNM_LEADING_DIR 0x08 /* Ignore /<tail> after Imatch. */ | |
19 | #define FNM_CASEFOLD 0x10 /* Case insensitive search. */ | |
e9c6571d | 20 | |
87d9869f VM |
21 | #define FNM_IGNORECASE FNM_CASEFOLD |
22 | #define FNM_FILE_NAME FNM_PATHNAME | |
e9c6571d VM |
23 | |
24 | extern int p_fnmatch(const char *pattern, const char *string, int flags); | |
25 | ||
26 | #endif /* _FNMATCH_H */ | |
27 |