vcpkg/ports/scnlib/fix-SCN_HAS_STD_REGEX_MULTILINE-marco.patch
Jia Yue Hua 600378d3fc
[simdutf,scnlib] update to 4.0.9,2.0.2 (#36459)
- [X] Changes comply with the [maintainer
guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md)
- [X] SHA512s are updated for each updated download
- [ ] ~The "supports" clause reflects platforms that may be fixed by
this new version~
- [ ] ~Any fixed [CI
baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt)
entries are removed from that file.~
- [ ] ~Any patches that are no longer applied are deleted from the
port's directory.~
- [X] The version database is fixed by rerunning `./vcpkg x-add-version
--all` and committing the result.
- [X] Only one version is added to each modified port's versions file.
2024-03-05 01:23:22 -08:00

14 lines
627 B
Diff

diff --git a/include/scn/detail/pp_detect.h b/include/scn/detail/pp_detect.h
index e8c5081..2002559 100644
--- a/include/scn/detail/pp_detect.h
+++ b/include/scn/detail/pp_detect.h
@@ -527,7 +527,7 @@
// (2021-09-29 is the date of the commit introducing `multiline`,
// libstdc++ doesn't support checking for minor versions)
#if SCN_STDLIB_LIBCPP >= 15000 || SCN_STDLIB_GLIBCXX >= 12 || \
- (SCN_STDLIB_GLIBCXX == 11 && __GLIBCXX__ >= 20210929L)
+ (SCN_STDLIB_GLIBCXX == 11 && SCN_GCC_COMPAT_MINOR >= 4 && __GLIBCXX__ >= 20210929L)
#define SCN_HAS_STD_REGEX_MULTILINE 1
#else
#define SCN_HAS_STD_REGEX_MULTILINE 0