Source code

Revision control

Copy as Markdown

Other Tools

From: Michael Froman <mfroman@mozilla.com>
Date: Fri, 19 Sep 2025 12:10:00 -0500
Subject: Bug 1985396 - (fix-81d116b87a) fixes for c++20 support
---
rtc_base/win32.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/rtc_base/win32.cc b/rtc_base/win32.cc
index a50501750f..253e8770a1 100644
--- a/rtc_base/win32.cc
+++ b/rtc_base/win32.cc
@@ -14,8 +14,8 @@
#include <ws2tcpip.h>
#include <algorithm>
-#include <iterator>
+#include "rtc_base/arraysize.h"
#include "rtc_base/byte_order.h"
#include "rtc_base/checks.h"
#include "rtc_base/string_utils.h"
@@ -88,7 +88,7 @@ const char* inet_ntop_v6(const void* src, char* dst, socklen_t size) {
int current = 1;
int max = 0;
int maxpos = -1;
- int run_array_size = std::ssize(runpos);
+ int run_array_size = arraysize(runpos);
// Run over the address marking runs of 0s.
for (int i = 0; i < run_array_size; ++i) {
if (as_shorts[i] == 0) {