diff --git a/Foundation/CMakeLists.txt b/Foundation/CMakeLists.txt index 41ba999367..cdd0a40254 100644 --- a/Foundation/CMakeLists.txt +++ b/Foundation/CMakeLists.txt @@ -41,6 +41,7 @@ else() POCO_SOURCES(SRCS pcre2 src/pcre2_auto_possess.c src/pcre2_chartables.c + src/pcre2_chkdint.c src/pcre2_compile.c src/pcre2_config.c src/pcre2_context.c @@ -101,6 +102,8 @@ set_target_properties(Foundation if(POCO_UNBUNDLED) target_link_libraries(Foundation PUBLIC Pcre2::Pcre2 ZLIB::ZLIB) target_compile_definitions(Foundation PUBLIC POCO_UNBUNDLED) +else() + target_compile_definitions(Foundation PRIVATE HAVE_CONFIG_H) endif(POCO_UNBUNDLED) target_include_directories(Foundation diff --git a/Foundation/Makefile b/Foundation/Makefile index 2cf81af21c..753d3bb993 100644 --- a/Foundation/Makefile +++ b/Foundation/Makefile @@ -35,7 +35,7 @@ objects = ArchiveStrategy Ascii ASCIIEncoding AsyncChannel AsyncNotificationCent zlib_objects = adler32 compress crc32 deflate \ infback inffast inflate inftrees trees zutil -pcre_objects = pcre2_auto_possess pcre2_chartables pcre2_compile pcre2_config \ +pcre_objects = pcre2_auto_possess pcre2_chartables pcre2_chkdint pcre2_compile pcre2_config \ pcre2_context pcre2_convert pcre2_dfa_match pcre2_error pcre2_extuni \ pcre2_find_bracket pcre2_jit_compile pcre2_maketables pcre2_match \ pcre2_match_data pcre2_newline pcre2_ord2utf pcre2_pattern_info \ diff --git a/Foundation/src/Unicode.cpp b/Foundation/src/Unicode.cpp index 93dbf4f27b..10b7cbf931 100644 --- a/Foundation/src/Unicode.cpp +++ b/Foundation/src/Unicode.cpp @@ -29,7 +29,7 @@ void Unicode::properties(int ch, CharacterProperties& props) { if (ch > UCP_MAX_CODEPOINT) ch = 0; const ucd_record* ucd = GET_UCD(ch); - props.category = static_cast(PRIV(ucp_gentype_8)[ucd->chartype]); + props.category = static_cast(PRIV(ucp_gentype)[ucd->chartype]); props.type = static_cast(ucd->chartype); props.script = static_cast