]> git.ipfire.org Git - thirdparty/git.git/blob - compat/regcomp_enhanced.c
Merge branch 'fc/remove-header-workarounds-for-asciidoc'
[thirdparty/git.git] / compat / regcomp_enhanced.c
1 #include "../git-compat-util.h"
2 #undef regcomp
3
4 int git_regcomp(regex_t *preg, const char *pattern, int cflags)
5 {
6 if (!(cflags & REG_EXTENDED))
7 cflags |= REG_ENHANCED;
8 return regcomp(preg, pattern, cflags);
9 }