summarylogtreecommitdiffstats
path: root/iwyu-add-cstdint-for-int-types-in-s2cellid.patch
blob: 4941b56d3bf528adac7599474eb7ddc2b25a95cb (plain)
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
From dbb0a49610aa491c5eaa1461342485721c37354c Mon Sep 17 00:00:00 2001
From: Stephan Hartmann <stha09@googlemail.com>
Date: Fri, 14 Apr 2023 05:29:45 +0000
Subject: [PATCH] IWYU: add cstdint for int types in s2cellid

Bug: 957519
Change-Id: I65ad411c605baeaeda3addfd07ea9b565179368b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4418467
Commit-Queue: Stephan Hartmann <stha09@googlemail.com>
Reviewed-by: Andrew Moylan <amoylan@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1130286}
---
 third_party/s2cellid/README.chromium           | 1 +
 third_party/s2cellid/src/s2/util/math/vector.h | 1 +
 2 files changed, 2 insertions(+)

diff --git a/third_party/s2cellid/README.chromium b/third_party/s2cellid/README.chromium
index 53c42f7342d..25044e85135 100644
--- a/third_party/s2cellid/README.chromium
+++ b/third_party/s2cellid/README.chromium
@@ -18,6 +18,7 @@ Local Modifications:
    - mathutil.h mathutil.cc
    - vector.h
      - Change comparison operator implementations to be C++20-compliant
+     - add missing cstdint include
  - _fpcontractoff.h
  - r1interval.h
  - r2.h
diff --git a/third_party/s2cellid/src/s2/util/math/vector.h b/third_party/s2cellid/src/s2/util/math/vector.h
index ded669c1d71..487edc3f93b 100644
--- a/third_party/s2cellid/src/s2/util/math/vector.h
+++ b/third_party/s2cellid/src/s2/util/math/vector.h
@@ -22,6 +22,7 @@
 
 #include <algorithm>
 #include <cmath>
+#include <cstdint>
 #include <cstdlib>
 #include <iosfwd>
 #include <iostream>  // NOLINT(readability/streams)