Sync with 'maint'
[git/gitster.git] / compat / regcomp_enhanced.c
blob84193ce53b64f5ff98bbcc3c4869c53a7796a17e
1 #include "../git-compat-util.h"
2 #undef regcomp
4 int git_regcomp(regex_t *preg, const char *pattern, int cflags)
6 if (!(cflags & REG_EXTENDED))
7 cflags |= REG_ENHANCED;
8 return regcomp(preg, pattern, cflags);