]> git.ipfire.org Git - thirdparty/git.git/blobdiff - grep.h
grep/pcre2: use compile-time PCREv2 version test
[thirdparty/git.git] / grep.h
diff --git a/grep.h b/grep.h
index ae89d6254b3e933e0912e1b551e50cf9b8e01cb8..54e52042cb98544c0e41cd0232414119908fe551 100644 (file)
--- a/grep.h
+++ b/grep.h
@@ -4,6 +4,9 @@
 #ifdef USE_LIBPCRE2
 #define PCRE2_CODE_UNIT_WIDTH 8
 #include <pcre2.h>
+#if (PCRE2_MAJOR >= 10 && PCRE2_MINOR >= 36) || PCRE2_MAJOR >= 11
+#define GIT_PCRE2_VERSION_10_36_OR_HIGHER
+#endif
 #else
 typedef int pcre2_code;
 typedef int pcre2_match_data;