# HG changeset patch
# User Maxim Dounin <[email protected]>
# Date 1722992353 -10800
#      Wed Aug 07 03:59:13 2024 +0300
# Node ID 8149e6e3ea2aa3d7ef3861330e38a2f144e35c47
# Parent  314be1eba450fd212bca448a1cc52af58a2eca9f
Updated PCRE2 used for win32 builds.

Note that PCRE2 10.40 and newer versions require C99 support, as it now
uses "for (int i = 0; ...)" constructs[1], and thus cannot be compiled
with MSVC 2010 and older versions anymore.

[1] https://github.com/PCRE2Project/pcre2/issues/163

diff --git a/auto/lib/pcre/make b/auto/lib/pcre/make
--- a/auto/lib/pcre/make
+++ b/auto/lib/pcre/make
@@ -36,7 +36,8 @@ if [ $PCRE_LIBRARY = PCRE2 ]; then
                        pcre2_valid_utf.c \
                        pcre2_xclass.c"
 
-        ngx_pcre_test="pcre2_convert.c \
+        ngx_pcre_test="pcre2_chkdint.c \
+                       pcre2_convert.c \
                        pcre2_extuni.c \
                        pcre2_find_bracket.c \
                        pcre2_script_run.c \
diff --git a/misc/GNUmakefile b/misc/GNUmakefile
--- a/misc/GNUmakefile
+++ b/misc/GNUmakefile
@@ -8,7 +8,7 @@ CC =            cl
 OBJS =         objs.msvc8
 OPENSSL =      openssl-3.0.14
 ZLIB =         zlib-1.3.1
-PCRE =         pcre2-10.39
+PCRE =         pcre2-10.44
 
 
 release: export

Reply via email to