diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2013-01-01 09:44:11 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-01-01 15:32:37 -0800 |
commit | cebcab189aa7727af5027f0215e798bbe66f2815 (patch) | |
tree | 2c21813c10a95febfbf1400443bf231bb344245a /test-wildmatch.c | |
parent | 6f1a31f0aae6dbd5414b81fb6c0f4ff087146fc5 (diff) | |
download | git-cebcab189aa7727af5027f0215e798bbe66f2815.tar.gz |
Makefile: add USE_WILDMATCH to use wildmatch as fnmatch
This is similar to NO_FNMATCH but it uses wildmatch instead of
compat/fnmatch. This is an intermediate step to let wildmatch be used
as fnmatch replacement for wider audience before it replaces fnmatch
completely and compat/fnmatch is removed.
fnmatch in test-wildmatch is not impacted by this and is the only
place that NO_FNMATCH or NO_FNMATCH_CASEFOLD remain active when
USE_WILDMATCH is set.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'test-wildmatch.c')
-rw-r--r-- | test-wildmatch.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test-wildmatch.c b/test-wildmatch.c index ac86800d50..a3e2643fbc 100644 --- a/test-wildmatch.c +++ b/test-wildmatch.c @@ -1,3 +1,6 @@ +#ifdef USE_WILDMATCH +#undef USE_WILDMATCH /* We need real fnmatch implementation here */ +#endif #include "cache.h" #include "wildmatch.h" |