archrelease: copy trunk to extra-x86_64
[arch-packages.git] / chromium / trunk / iwyu-add-cstdint-for-int-types-in-s2cellid.patch
blob4941b56d3bf528adac7599474eb7ddc2b25a95cb
1 From dbb0a49610aa491c5eaa1461342485721c37354c Mon Sep 17 00:00:00 2001
2 From: Stephan Hartmann <stha09@googlemail.com>
3 Date: Fri, 14 Apr 2023 05:29:45 +0000
4 Subject: [PATCH] IWYU: add cstdint for int types in s2cellid
6 Bug: 957519
7 Change-Id: I65ad411c605baeaeda3addfd07ea9b565179368b
8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4418467
9 Commit-Queue: Stephan Hartmann <stha09@googlemail.com>
10 Reviewed-by: Andrew Moylan <amoylan@chromium.org>
11 Cr-Commit-Position: refs/heads/main@{#1130286}
12 ---
13 third_party/s2cellid/README.chromium | 1 +
14 third_party/s2cellid/src/s2/util/math/vector.h | 1 +
15 2 files changed, 2 insertions(+)
17 diff --git a/third_party/s2cellid/README.chromium b/third_party/s2cellid/README.chromium
18 index 53c42f7342d..25044e85135 100644
19 --- a/third_party/s2cellid/README.chromium
20 +++ b/third_party/s2cellid/README.chromium
21 @@ -18,6 +18,7 @@ Local Modifications:
22 - mathutil.h mathutil.cc
23 - vector.h
24 - Change comparison operator implementations to be C++20-compliant
25 + - add missing cstdint include
26 - _fpcontractoff.h
27 - r1interval.h
28 - r2.h
29 diff --git a/third_party/s2cellid/src/s2/util/math/vector.h b/third_party/s2cellid/src/s2/util/math/vector.h
30 index ded669c1d71..487edc3f93b 100644
31 --- a/third_party/s2cellid/src/s2/util/math/vector.h
32 +++ b/third_party/s2cellid/src/s2/util/math/vector.h
33 @@ -22,6 +22,7 @@
35 #include <algorithm>
36 #include <cmath>
37 +#include <cstdint>
38 #include <cstdlib>
39 #include <iosfwd>
40 #include <iostream> // NOLINT(readability/streams)