summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pcresearch.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pcresearch.c b/src/pcresearch.c
index ef8215fc..c12c6740 100644
--- a/src/pcresearch.c
+++ b/src/pcresearch.c
@@ -23,7 +23,10 @@
#define PCRE2_CODE_UNIT_WIDTH 8
#include <pcre2.h>
-/* For PCRE2 < 10.30. */
+/* For older PCRE2. */
+#ifndef PCRE2_SIZE_MAX
+# define PCRE2_SIZE_MAX SIZE_MAX
+#endif
#ifndef PCRE2_CONFIG_DEPTHLIMIT
# define PCRE2_CONFIG_DEPTHLIMIT PCRE2_CONFIG_RECURSIONLIMIT
# define PCRE2_ERROR_DEPTHLIMIT PCRE2_ERROR_RECURSIONLIMIT