]> git.ipfire.org Git - thirdparty/git.git/blobdiff - git-compat-util.h
use enhanced basic regular expressions on macOS
[thirdparty/git.git] / git-compat-util.h
index a76d0526f79266e1dc512072a4236876df8f8726..4824c8cad40bc258cd0a1c978794f6a179557d8d 100644 (file)
@@ -1336,6 +1336,11 @@ static inline int regexec_buf(const regex_t *preg, const char *buf, size_t size,
        return regexec(preg, buf, nmatch, pmatch, eflags | REG_STARTEND);
 }
 
+#ifdef USE_ENHANCED_BASIC_REGULAR_EXPRESSIONS
+int git_regcomp(regex_t *preg, const char *pattern, int cflags);
+#define regcomp git_regcomp
+#endif
+
 #ifndef DIR_HAS_BSD_GROUP_SEMANTICS
 # define FORCE_DIR_SET_GID S_ISGID
 #else