summaryrefslogtreecommitdiff
path: root/www/ungoogled-chromium/files/patch-third__party_blink_renderer_core_html_parser_html__document__parser__fastpath.cc
blob: 33c943a32788e0713f5249750b191649c344866f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- third_party/blink/renderer/core/html/parser/html_document_parser_fastpath.cc.orig	2023-12-23 12:33:28 UTC
+++ third_party/blink/renderer/core/html/parser/html_document_parser_fastpath.cc
@@ -172,7 +172,11 @@ class HTMLFastPathParser {
   using Span = base::span<const Char>;
   using USpan = base::span<const UChar>;
   // 32 matches that used by HTMLToken::Attribute.
+#if defined(__clang__) && (__clang_major__ >= 16)
   typedef std::conditional<std::is_same_v<Char, UChar>,
+#else
+  typedef typename std::conditional<std::is_same_v<Char, UChar>,
+#endif
                            UCharLiteralBuffer<32>,
                            LCharLiteralBuffer<32>>::type LiteralBufferType;
   typedef UCharLiteralBuffer<32> UCharLiteralBufferType;