File: s0127.patch

package info (click to toggle)
firefox 147.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,683,484 kB
  • sloc: cpp: 7,607,246; javascript: 6,533,185; ansic: 3,775,227; python: 1,415,393; xml: 634,561; asm: 438,951; java: 186,241; sh: 62,752; makefile: 18,079; objc: 13,092; perl: 12,808; yacc: 4,583; cs: 3,846; pascal: 3,448; lex: 1,720; ruby: 1,003; php: 436; lisp: 258; awk: 247; sql: 66; sed: 54; csh: 10; exp: 6
file content (47 lines) | stat: -rw-r--r-- 1,626 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
From: Michael Froman <mfroman@mozilla.com>
Date: Wed, 8 Oct 2025 17:49:00 +0000
Subject: Bug 1980501 - use forward class decl rather than include
 audio_state.h r?ng!

This avoids code outside of libwebrtc inadvertently including
rtc_base/containers/flat_set.h which uses c++20 features.  Once
the rest of the Mozilla tree is compiling with c++20, we can
remove this modification (see Bug 1768116).

Differential Revision: https://phabricator.services.mozilla.com/D267993
Mercurial Revision: https://hg.mozilla.org/mozilla-central/rev/9c487a574d218cc1c261b646c501db4d159754f0
---
 audio/audio_receive_stream.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/audio/audio_receive_stream.h b/audio/audio_receive_stream.h
index 4b6c57b871..3f054776d2 100644
--- a/audio/audio_receive_stream.h
+++ b/audio/audio_receive_stream.h
@@ -34,7 +34,11 @@
 #include "api/transport/rtp/rtp_source.h"
 #include "api/units/time_delta.h"
 #include "api/units/timestamp.h"
+// This can be removed after Bug 1768116 enables
+// c++20 builds across the entire Mozilla tree.
+#if !defined(WEBRTC_MOZILLA_BUILD)
 #include "audio/audio_state.h"
+#endif
 #include "call/audio_receive_stream.h"
 #include "call/audio_state.h"
 #include "call/syncable.h"
@@ -47,6 +51,14 @@ class PacketRouter;
 class RtpStreamReceiverControllerInterface;
 class RtpStreamReceiverInterface;
 
+// This can be removed after Bug 1768116 enables
+// c++20 builds across the entire Mozilla tree.
+#if defined(WEBRTC_MOZILLA_BUILD)
+namespace internal {
+class AudioState;
+}
+#endif
+
 namespace voe {
 class ChannelReceiveInterface;
 }  // namespace voe