summaryrefslogtreecommitdiff
path: root/www/ungoogled-chromium/files/patch-third__party_blink_renderer_core_html_parser_html__document__parser__fastpath.cc
blob: cacb9138d62cf27326cead0c88d215885a123217 (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-07-21 09:49:17 UTC
+++ third_party/blink/renderer/core/html/parser/html_document_parser_fastpath.cc
@@ -169,7 +169,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;