-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix SCN_HAS_STD_REGEX_MULTILINE marco
- Loading branch information
Showing
4 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
diff --git a/include/scn/fwd.h b/include/scn/fwd.h | ||
index 9b4892f..018a4f4 100644 | ||
--- a/include/scn/fwd.h | ||
+++ b/include/scn/fwd.h | ||
@@ -739,11 +739,11 @@ SCN_GCC_POP | ||
#endif | ||
|
||
// Detect std::regex_constants::multiline: | ||
-// libc++ 15 and later, or libstdc++ 11.4 or later | ||
-// (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) | ||
+// libc++ 15 and later, or libstdc++ 12 or later | ||
+ | ||
+ | ||
+#if SCN_STDLIB_LIBCPP >= 15000 || SCN_STDLIB_GLIBCXX >= 12 | ||
+ | ||
#define SCN_HAS_STD_REGEX_MULTILINE 1 | ||
#else | ||
#define SCN_HAS_STD_REGEX_MULTILINE 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters